show admin data on admin categories

pull/1/head
Jared Cosulich 7 years ago
parent ef3d0186a5
commit 50930ecc62

@ -15,14 +15,17 @@
%p= @category.description %p= @category.description
- if valid - if valid
-# %p %p
-# - if @school_category.response_count > 0 - if @school_category.category.benchmark.present?
-# %b Average: %b Administrative Data:
-# - likert = @school_category.answer_index_average - if @school_category.nonlikert.present?
-# - zscore = @school_category.zscore.present? ? @school_category.zscore + 3 : nil = @school_category.nonlikert
-# - likert = zscore if zscore.present? = "(Benchmark: #{@school_category.category.benchmark})"
-# - likert = likert.round(1)  
-# = number_with_delimiter(likert) - if @school_category.zscore.present?
= @school_category.zscore.round(1) + 3
(out of 5)
.indicator-container.py-3 .indicator-container.py-3
= render 'school_categories/indicator', info: @school_category = render 'school_categories/indicator', info: @school_category

Loading…
Cancel
Save