From 2ec76113a9d39471b0e9accb96dbdd8c968bb473 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 9 Jan 2024 17:15:42 +0000 Subject: [PATCH] refactor: lint --- app/views/layouts/application.html.erb | 1 - app/views/notifications/_notification_banner.html.erb | 8 ++++---- app/views/notifications/show.html.erb | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b62ccb343..f1809bebf 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -107,7 +107,6 @@ <% end %> <% end %> - <% feedback_link = govuk_link_to "giving us your feedback (opens in a new tab)", t("feedback_form"), rel: "noreferrer noopener", target: "_blank" %> <%= govuk_phase_banner( diff --git a/app/views/notifications/_notification_banner.html.erb b/app/views/notifications/_notification_banner.html.erb index c3d44a1c0..230fe458a 100644 --- a/app/views/notifications/_notification_banner.html.erb +++ b/app/views/notifications/_notification_banner.html.erb @@ -3,19 +3,19 @@
- <% if notification_count > 1 && current_user.present?%> + <% if notification_count > 1 && current_user.present? %>

Notification 1 of <%= notification_count %>

<% end %>

<%= notification.title %>

<% if notification.page_content.present? %> -
- <%= govuk_link_to notification.link_text, notifications_path, class: "govuk-link--inverse govuk-!-font-weight-bold"%> +
+ <%= govuk_link_to notification.link_text, notifications_path, class: "govuk-link--inverse govuk-!-font-weight-bold" %>
<% end %>
<% if current_user.present? %>

- <%= govuk_link_to "Dismiss", dismiss_notifications_path, class: "govuk-link--inverse"%> + <%= govuk_link_to "Dismiss", dismiss_notifications_path, class: "govuk-link--inverse" %>

<% end %>
diff --git a/app/views/notifications/show.html.erb b/app/views/notifications/show.html.erb index fa94bc277..abdc77044 100644 --- a/app/views/notifications/show.html.erb +++ b/app/views/notifications/show.html.erb @@ -13,5 +13,5 @@

- <%= govuk_button_link_to "Back to #{current_user.present? ? "Home": "Start"}", root_path %> + <%= govuk_button_link_to "Back to #{current_user.present? ? 'Home' : 'Start'}", root_path %>