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)}") %> -
- <% end %> + <% 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})", + } %> +