Browse Source

matching style for title

pull/623/head
JG 3 years ago
parent
commit
82ef8e96aa
  1. 4
      app/views/case_logs/index.html.erb
  2. 4
      app/views/organisations/logs.html.erb

4
app/views/case_logs/index.html.erb

@ -1,9 +1,9 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% if @searched.present? %>
<% title = "Logs (search results for ‘#{@searched}’#{@pagy.last > 1 ? ", page #{@pagy.page} of #{@pagy.last}" : ''}) - Submit social housing and sales data (CORE) - GOV.UK" %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total logs)" %>
<% else %>
<% title = "Logs #{@pagy.last > 1 ? "(page #{@pagy.page} of #{@pagy.last}) " : ''}- Submit social housing and sales data (CORE) - GOV.UK" %>
<% title = "Your organisation (Logs)" %>
<% end %>
<% content_for :title, title %>

4
app/views/organisations/logs.html.erb

@ -1,9 +1,9 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% if @searched.present? %>
<% title = "Logs (search results for ‘#{@searched}’#{@pagy.last > 1 ? ", page #{@pagy.page} of #{@pagy.last}" : ''}) - Submit social housing and sales data (CORE) - GOV.UK" %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total logs)" %>
<% else %>
<% title = "Logs #{@pagy.last > 1 ? "(page #{@pagy.page} of #{@pagy.last}) " : ''}- Submit social housing and sales data (CORE) - GOV.UK" %>
<% title = "Your organisation (Logs)" %>
<% end %>
<% content_for :title, title %>

Loading…
Cancel
Save