From 50930ecc62a73aeadd64930ac8353cf369341bf8 Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Mon, 14 Jan 2019 14:48:05 -0500 Subject: [PATCH] show admin data on admin categories --- app/views/categories/show.html.haml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/views/categories/show.html.haml b/app/views/categories/show.html.haml index 5b3042c2..6182dcfa 100644 --- a/app/views/categories/show.html.haml +++ b/app/views/categories/show.html.haml @@ -15,14 +15,17 @@ %p= @category.description - if valid - -# %p - -# - if @school_category.response_count > 0 - -# %b Average: - -# - likert = @school_category.answer_index_average - -# - zscore = @school_category.zscore.present? ? @school_category.zscore + 3 : nil - -# - likert = zscore if zscore.present? - -# - likert = likert.round(1) - -# = number_with_delimiter(likert) + %p + - if @school_category.category.benchmark.present? + %b Administrative Data: + - if @school_category.nonlikert.present? + = @school_category.nonlikert + = "(Benchmark: #{@school_category.category.benchmark})" +   + - 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