diff --git a/app/presenters/admin_data_presenter.rb b/app/presenters/admin_data_presenter.rb index 406d68b1..7ca1cc25 100644 --- a/app/presenters/admin_data_presenter.rb +++ b/app/presenters/admin_data_presenter.rb @@ -1,6 +1,6 @@ class AdminDataPresenter < DataItemPresenter def initialize(measure_id:, admin_data_items:) - super(measure_id: measure_id, has_sufficient_data: true) + super(measure_id: measure_id, has_sufficient_data: false) @admin_data_items = admin_data_items end @@ -15,4 +15,8 @@ class AdminDataPresenter < DataItemPresenter def item_descriptions @admin_data_items.map(&:description) end + + def reason_for_insufficiency + "limited availability" + end end diff --git a/app/presenters/student_survey_presenter.rb b/app/presenters/student_survey_presenter.rb index 01a3ddc0..3fc86ddb 100644 --- a/app/presenters/student_survey_presenter.rb +++ b/app/presenters/student_survey_presenter.rb @@ -15,4 +15,8 @@ class StudentSurveyPresenter < DataItemPresenter def item_descriptions @survey_items.map(&:prompt) end + + def reason_for_insufficiency + "low response rate" + end end diff --git a/app/presenters/teacher_survey_presenter.rb b/app/presenters/teacher_survey_presenter.rb index 1fad9806..126ed5ec 100644 --- a/app/presenters/teacher_survey_presenter.rb +++ b/app/presenters/teacher_survey_presenter.rb @@ -15,4 +15,8 @@ class TeacherSurveyPresenter < DataItemPresenter def item_descriptions @survey_items.map(&:prompt) end + + def reason_for_insufficiency + "low response rate" + end end diff --git a/app/views/categories/_data_item_section.html.erb b/app/views/categories/_data_item_section.html.erb index 0aa1bd58..34556364 100644 --- a/app/views/categories/_data_item_section.html.erb +++ b/app/views/categories/_data_item_section.html.erb @@ -23,7 +23,7 @@
<% unless data_item_section.sufficient_data? %> <% end %>