adding response_total to SchoolQuestion

This commit is contained in:
Jared Cosulich 2018-12-21 13:21:37 -05:00
parent 341c561a67
commit a82deaafd8
3 changed files with 15 additions and 7 deletions

View file

@ -49,6 +49,6 @@
%p.collapse{id: "raw-data#{question.id}"}
= aggregated_responses.responses.map(&:answer_index_with_reverse).join(', ')
-# - if school_question.present?
-# .clearfix
-# %p= "Attempts: #{school_question.attempt_count}, Responses: #{school_question.response_count}, Response Rate: #{number_to_percentage(school_question.response_rate * 100, precision: 0)}"
- if school_question.present?
.clearfix
%p= "Attempts: #{school_question.attempt_count}, Responses: #{school_question.response_count}, Response Rate: #{number_to_percentage(school_question.response_rate * 100, precision: 0)}, Total: #{school_question.response_total}"