Browse Source

Revert "Fix apostrophes and ampersands in users page too"

This reverts commit 44bcbfd4f4.
pull/2643/head
Manny Dinssa 2 years ago
parent
commit
009b327fbe
  1. 2
      app/views/users/edit.html.erb
  2. 2
      app/views/users/show.html.erb
  3. 2
      app/views/users/toggle_active.html.erb

2
app/views/users/edit.html.erb

@ -1,4 +1,4 @@
<% content_for :title, current_user == @user ? "Change your personal details" : "Change #{sanitise_characters(@user.name.presence) || 'this user'}’s personal details" %> <% content_for :title, current_user == @user ? "Change your personal details" : "Change #{@user.name.presence || 'this user'}’s personal details" %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link(href: :back) %> <%= govuk_back_link(href: :back) %>

2
app/views/users/show.html.erb

@ -1,4 +1,4 @@
<% content_for :title, current_user == @user ? "Your account" : "#{sanitise_characters(@user.name.presence) || @user.email}’s account" %> <% content_for :title, current_user == @user ? "Your account" : "#{@user.name.presence || @user.email}’s account" %>
<% if current_user.support? %> <% if current_user.support? %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {

2
app/views/users/toggle_active.html.erb

@ -1,4 +1,4 @@
<% content_for :title, "#{action.capitalize} #{sanitise_characters(@user.name.presence) || @user.email}’s account" %> <% content_for :title, "#{action.capitalize} #{@user.name.presence || @user.email}’s account" %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %> <%= form_for(@user, as: :user, html: { method: :patch }) do |f| %>

Loading…
Cancel
Save