From 9123e35a647105b11095dc86954a0075cece67e4 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Tue, 24 Jan 2023 16:26:53 +0000 Subject: [PATCH] placeholder for bulk upload logs header --- app/views/logs/index.html.erb | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/views/logs/index.html.erb b/app/views/logs/index.html.erb index 7fa3578c7..926ee8378 100644 --- a/app/views/logs/index.html.erb +++ b/app/views/logs/index.html.erb @@ -11,17 +11,22 @@ title_id: "impacted-logs-banner", ) do |notification_banner| %> <% notification_banner.heading(text: "A scheme has changed and it has affected #{@unresolved_count} #{'log'.pluralize(@unresolved_count)}") %> -
- <%= govuk_link_to "Update logs", update_logs_lettings_logs_path, class: "govuk-notification-banner__link" %> -
- <% end %> +
+ <%= govuk_link_to "Update logs", update_logs_lettings_logs_path, class: "govuk-notification-banner__link" %> +
<% end %> - <%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Lettings logs", sub: nil } : { main: "Lettings logs", sub: current_user.organisation.name } %> -<% elsif current_page?(controller: 'sales_logs', action: 'index') %> - <%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Sales logs", sub: nil } : { main: "Sales logs", sub: current_user.organisation.name } %> + <% end %> <% end %> -<% if @bulk_upload %> +<% unless @bulk_upload %> + <%= render partial: "organisations/headings", locals: current_user.support? ? { main: "#{log_type_for_controller(controller).capitalize} logs", sub: nil } : { main: "#{log_type_for_controller(controller).capitalize} logs", sub: current_user.organisation.name } %> +<% else %> + <%= render partial: "organisations/headings", + locals: { + main: "You need to fix XYZ logs from your bulk upload", + sub: "#{log_type_for_controller(controller).capitalize} logs (#{@bulk_upload.year_combo})", + } %> +