From e605c667e377da3f39f73d98ef41d61cb4407370 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 26 May 2022 16:42:30 +0100 Subject: [PATCH] correct title --- app/views/case_logs/index.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index 37a09e325..1288fcc37 100644 --- a/app/views/case_logs/index.html.erb +++ b/app/views/case_logs/index.html.erb @@ -1,16 +1,16 @@ <% item_label = @pagy.count > 1 ? "logs" : "log" %> <% if @searched.present? %> - <% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total logs)" %> + <% title = "Logs (search results for ‘#{@searched}’#{ true ? ", page #{@pagy.from} of #{@pagy.last}" : ""}) - Submit social housing and sales data (CORE) - GOV.UK" %> <% else %> - <% title = "Your organisation (Logs)" %> + <% title = "Logs - #{@pagy.count > 1 ? "(page #{@pagy.from} of #{@pagy.last})" : "" } Submit social housing and sales data (CORE) - GOV.UK" %> <% end %> -<% content_for :title, "Logs" %> +<% content_for :title, title %> -

- <%= content_for(:title) %> -

+<% content_for :tab_title do %> + <%= "Logs" %> +<% end %>