From 701230f1ff9042a0318e7a037de887c278239497 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:54:38 +0100 Subject: [PATCH] Revert "Fix apostrophes and ampersands in other organisation related pages" This reverts commit aa9c6e1c --- app/views/organisations/_merged_organisation_details.html.erb | 2 +- app/views/organisations/edit.html.erb | 4 ++-- app/views/organisations/show.html.erb | 2 +- app/views/organisations/toggle_active.html.erb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/organisations/_merged_organisation_details.html.erb b/app/views/organisations/_merged_organisation_details.html.erb index 72ec9b213..020051156 100644 --- a/app/views/organisations/_merged_organisation_details.html.erb +++ b/app/views/organisations/_merged_organisation_details.html.erb @@ -1,5 +1,5 @@ <% if @organisation.organisations_absorbed_during_displayed_collection_period_grouped_by_merge_date.present? %> - <%= govuk_details(summary_text: "View all organisations that were merged into #{sanitise_characters(@organisation.name)}") do %> + <%= govuk_details(summary_text: "View all organisations that were merged into #{@organisation.name}") do %> <% @organisation.organisations_absorbed_during_displayed_collection_period_grouped_by_merge_date.each do |merge_date, organisations| %>

Merge date: <%= merge_date&.to_formatted_s(:govuk_date) %>

<%= govuk_table do |table| %> diff --git a/app/views/organisations/edit.html.erb b/app/views/organisations/edit.html.erb index 7718dbea4..b0bd05bf6 100644 --- a/app/views/organisations/edit.html.erb +++ b/app/views/organisations/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Change #{sanitise_characters(@organisation.name)}’s details" %> +<% content_for :title, "Change #{@organisation.name}’s details" %> <% content_for :before_content do %> <%= govuk_back_link(href: :back) %> @@ -8,7 +8,7 @@

- <%= "Change #{@organisation.name}’s details" %> + <%= content_for(:title) %>

<% if current_user.support? %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index f75d01e41..214b988f0 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -1,4 +1,4 @@ -<% title = current_user.support? ? "#{sanitise_characters(@organisation.name)} (Organisation details)" : "Organisation details" %> +<% title = current_user.support? ? "#{@organisation.name} (Organisation details)" : "Organisation details" %> <% title = format_title(nil, current_user.support? ? "About this organisation" : "Your organisation", current_user, nil, nil, @organisation.name) %> <% content_for :title, title %> diff --git a/app/views/organisations/toggle_active.html.erb b/app/views/organisations/toggle_active.html.erb index 192caa114..42f1e8403 100644 --- a/app/views/organisations/toggle_active.html.erb +++ b/app/views/organisations/toggle_active.html.erb @@ -1,4 +1,4 @@ -<% title = "#{action.humanize} #{sanitise_characters(@organisation.name)}" %> +<% title = "#{action.humanize} #{@organisation.name}" %> <% content_for :title, title %> <% content_for :before_content do %>