- valid = @school_category.school.district.name != "Boston" || (((@school_category.valid_child_count || 1) > 0) && (@school_category.category.benchmark.blank?))

= render 'layouts/school_header'

- if @school_category.school.district.name != "Boston"
  .row
    .col-12
      %p
        = render 'categories/breadcrumbs', school_category: @school_category

.row
  .col-12
    .school_category.p-2
      %h3.title.text-center.pt-3
        = @category.name

      %p= @category.description
      - if valid
        %p
          - if @school_category.category.benchmark.present?
            %b Administrative&nbsp;Data:
            - if @school_category.nonlikert.present?
              = @school_category.nonlikert
              = "(Benchmark: #{@school_category.category.benchmark})"
              &nbsp;
            - if @school_category.zscore.present?
              = @school_category.zscore.round(1) + 3
              (out of 5)


        .indicator-container.py-3
          = render 'school_categories/indicator', info: @school_category
      - else
        .row.py-4
          .col-12.text-center
            .px-2
              %h5 Insufficient Responses
              %p No data is displayed for this measure because of insufficient responses.

- unless @school.district.name == "Boston" && @category.slug == "effective-leadership-scale"
  - if @child_school_categories.present?
    .row
      = render @child_school_categories

  - if @questions.present?
    .row
      = render @questions

= render "shared/performance_spectrum"
