diff --git a/app/helpers/review_helper.rb b/app/helpers/review_helper.rb
index e76602a28..149a62060 100644
--- a/app/helpers/review_helper.rb
+++ b/app/helpers/review_helper.rb
@@ -11,17 +11,14 @@ module ReviewHelper
end
def review_breadcrumbs(log)
- class_name = log.class.model_name.human.downcase
if log.collection_closed_for_editing?
content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
breadcrumb_logs_title(log, current_user) => breadcrumb_logs_link(log, current_user),
- "Log #{log.id}" => "",
})
else
content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
breadcrumb_logs_title(log, current_user) => breadcrumb_logs_link(log, current_user),
"Log #{log.id}" => url_for(log),
- "Review #{class_name}" => "",
})
end
end
diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb
index 9247f1aab..6cba1a547 100644
--- a/app/views/form/check_answers.html.erb
+++ b/app/views/form/check_answers.html.erb
@@ -1,8 +1,7 @@
<% content_for :title, "#{subsection.id.humanize} - Check your answers" %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
breadcrumb_logs_title(@log, current_user) => breadcrumb_logs_link(@log, current_user),
- "Log #{@log.id}" => url_for(@log),
- subsection.label => "",
+ "Log #{@log.id}" => url_for(@log)
}) %>
diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb
index 1705724bb..37c391c68 100644
--- a/app/views/locations/index.html.erb
+++ b/app/views/locations/index.html.erb
@@ -6,7 +6,6 @@
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
"Schemes (#{@scheme.owning_organisation.name})" => schemes_organisation_path(@scheme.owning_organisation),
content_for(:title) => scheme_path(@scheme),
- "Locations" => "",
}) %>
<% else %>
<% content_for :before_content do %>
diff --git a/app/views/logs/edit.html.erb b/app/views/logs/edit.html.erb
index b4769698b..4e874bdf4 100644
--- a/app/views/logs/edit.html.erb
+++ b/app/views/logs/edit.html.erb
@@ -1,7 +1,6 @@
<% content_for :title, "Log #{@log.id}" %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
- breadcrumb_logs_title(@log, current_user) => breadcrumb_logs_link(@log, current_user),
- content_for(:title) => "",
+ breadcrumb_logs_title(@log, current_user) => breadcrumb_logs_link(@log, current_user)
}) %>
diff --git a/app/views/schemes/show.html.erb b/app/views/schemes/show.html.erb
index fee4b8a83..9d07989cc 100644
--- a/app/views/schemes/show.html.erb
+++ b/app/views/schemes/show.html.erb
@@ -4,7 +4,6 @@
<% if current_user.support? %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
"Schemes (#{@scheme.owning_organisation.name})" => schemes_organisation_path(@scheme.owning_organisation),
- content_for(:title) => "",
}) %>
<% else %>
<% content_for :before_content do %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 895a2fe79..d06d6c76d 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -3,7 +3,6 @@
<% if current_user.support? %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
"Users (#{@user.organisation.name})" => users_organisation_path(@user.organisation),
- content_for(:title) => "",
}) %>
<% else %>
<% content_for :before_content do %>