diff --git a/app/helpers/tasklist_helper.rb b/app/helpers/tasklist_helper.rb index d30dc0187..4c831029c 100644 --- a/app/helpers/tasklist_helper.rb +++ b/app/helpers/tasklist_helper.rb @@ -24,14 +24,6 @@ module TasklistHelper :in_progress end - def get_status_style(status_label) - STYLES[status_label] - end - - def get_status_label(status) - STATUSES[status] - end - def get_next_incomplete_section(form, case_log) subsections = form.all_subsections.keys subsections.find { |subsection| is_incomplete?(subsection, case_log, form.questions_for_subsection(subsection).keys) } diff --git a/app/views/case_logs/_tasklist.html.erb b/app/views/case_logs/_tasklist.html.erb index e56fca38b..dbbeb6321 100644 --- a/app/views/case_logs/_tasklist.html.erb +++ b/app/views/case_logs/_tasklist.html.erb @@ -12,8 +12,8 @@ <% first_page = @form.first_page_for_subsection(subsection_key) %> <%= link_to subsection_value["label"], send("case_log_#{first_page}_path", @case_log), class: "task-name govuk-link" %> <% subsection_status=get_subsection_status(subsection_key, @case_log, @form.questions_for_subsection(subsection_key).keys) %> - - <%= get_status_label(subsection_status) %> + + <%= TasklistHelper::STATUSES[subsection_status] %> <% end %>