From 93e9f198391f1496374bf40f7c106665f1c749d5 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 2 Dec 2021 11:38:17 +0000 Subject: [PATCH] refactor --- app/views/case_logs/edit.html.erb | 2 +- app/views/case_logs/index.html.erb | 2 +- app/views/devise/sessions/new.html.erb | 2 +- app/views/form/check_answers.html.erb | 2 +- app/views/form/page.html.erb | 2 +- app/views/layouts/application.html.erb | 2 +- app/views/organisations/show.html.erb | 2 +- app/views/organisations/users.html.erb | 2 +- app/views/users/show.html.erb | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 0536c7cbe..d387aecea 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Case log #{@case_log.id}") %> +<% content_for :title, "Case log #{@case_log.id}" %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index 0581f7a6a..07855d687 100644 --- a/app/views/case_logs/index.html.erb +++ b/app/views/case_logs/index.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Case logs") %> +<% content_for :title, "Case logs" %>

Your logs

diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 4e0672ec1..6e2630b8e 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Sign in") %> +<% content_for :title, "Sign in" %> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb index 9cd37c5a2..942184dd6 100644 --- a/app/views/form/check_answers.html.erb +++ b/app/views/form/check_answers.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Check answers") %> +<% content_for :title, "Check answers" %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb index 505924fbe..72a825957 100644 --- a/app/views/form/page.html.erb +++ b/app/views/form/page.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title(subsection) %> +<% content_for :title, subsection %> <% content_for :before_content do %> <%= govuk_back_link( diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ce2ec84db..79d0637f4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - <%= yield(:title).present? ? yield(:title) : t('service_name') %> + <%= yield(:title).present? ? browser_title(yield(:title)) : t('service_name') %> <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 3748e6cc0..d554e6596 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Your organisation (Details)") %> +<% content_for :title, "Your organisation (Details)" %> <% content_for :tab_title do %> <%= "Details" %> <% end %> diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb index 653cfc569..d088445d1 100644 --- a/app/views/organisations/users.html.erb +++ b/app/views/organisations/users.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Your organisation (Users)") %> +<% content_for :title, "Your organisation (Users)" %> <% content_for :tab_title do %> <%= "Users" %> <% end %> diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 032938628..7b2dae5c2 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, browser_title("Your account") %> +<% content_for :title, "Your account" %>