% item_label = format_label(@pagy.count, "logs") %> <% title = format_title(@searched, "Logs", current_user, item_label, @pagy.count, nil) %> <% content_for :title, title %> <% if current_page?(controller: 'lettings_logs', action: 'index') %> <% if @logs_to_update > 0 %> <%= govuk_notification_banner( title_text: "Important", title_heading_level: 3, title_id: "impacted-logs-banner", ) do |notification_banner| %> <% notification_banner.heading(text: "A scheme has changed and it has affected #{@logs_to_update} #{@logs_to_update > 1 ? 'logs' : 'log'}") %>
<% 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 %>