From b4a625d5ffcedf1e65fe207add60fec8c5343790 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:43:27 +0100 Subject: [PATCH] Fix lint offences --- app/views/schemes/deactivate_confirm.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/schemes/deactivate_confirm.html.erb b/app/views/schemes/deactivate_confirm.html.erb index b09784e5a..772b3a329 100644 --- a/app/views/schemes/deactivate_confirm.html.erb +++ b/app/views/schemes/deactivate_confirm.html.erb @@ -9,24 +9,24 @@ <%= @scheme.service_name %> <% sentence_parts = [] %> <% if @affected_logs.count > 0 %> - <% sentence_parts << pluralize(@affected_logs.count, 'log') %> + <% sentence_parts << pluralize(@affected_logs.count, "log") %> <% end %> <% if @affected_locations.count > 0 %> - <% sentence_parts << pluralize(@affected_locations.count, 'location') %> + <% sentence_parts << pluralize(@affected_locations.count, "location") %> <% end %> - This change will affect <%= sentence_parts.join(' and ') %>. + This change will affect <%= sentence_parts.join(" and ") %>. <% if @affected_logs.count > 0 %>

- <%= pluralize(@affected_logs.count, 'existing log') %> using this scheme <%= @affected_logs.count == 1 ? 'has' : 'have' %> a tenancy start date after <%= @deactivation_date.to_formatted_s(:govuk_date) %>. + <%= pluralize(@affected_logs.count, "existing log") %> using this scheme <%= @affected_logs.count == 1 ? "has" : "have" %> a tenancy start date after <%= @deactivation_date.to_formatted_s(:govuk_date) %>.

<% end %> - <%= govuk_warning_text text: I18n.t("warnings.scheme.deactivate.review_logs"), html_attributes: { class: "" } %> + <%= govuk_warning_text text: I18n.t("warnings.scheme.deactivate.review_logs"), html_attributes: { class: "" } %>

- This scheme has <%= pluralize(@affected_locations.count, 'location') %> active on <%= @deactivation_date.to_formatted_s(:govuk_date) %>. <%= @affected_locations.count == 1 ? 'This location' : 'These locations' %> will deactivate on that date. If the scheme is ever reactivated, <%= @affected_locations.count == 1 ? 'this location' : 'these locations' %> will reactivate as well. + This scheme has <%= pluralize(@affected_locations.count, "location") %> active on <%= @deactivation_date.to_formatted_s(:govuk_date) %>. <%= @affected_locations.count == 1 ? "This location" : "These locations" %> will deactivate on that date. If the scheme is ever reactivated, <%= @affected_locations.count == 1 ? "this location" : "these locations" %> will reactivate as well.