Browse Source

refactor: lint

pull/2131/head
natdeanlewissoftwire 2 years ago
parent
commit
2ec76113a9
  1. 1
      app/views/layouts/application.html.erb
  2. 8
      app/views/notifications/_notification_banner.html.erb
  3. 2
      app/views/notifications/show.html.erb

1
app/views/layouts/application.html.erb

@ -107,7 +107,6 @@
<% end %> <% end %>
<% end %> <% end %>
<% feedback_link = govuk_link_to "giving us your feedback (opens in a new tab)", t("feedback_form"), rel: "noreferrer noopener", target: "_blank" %> <% 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( <%= govuk_phase_banner(

8
app/views/notifications/_notification_banner.html.erb

@ -3,19 +3,19 @@
<br> <br>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters"> <div class="govuk-grid-column-three-quarters">
<% if notification_count > 1 && current_user.present?%> <% if notification_count > 1 && current_user.present? %>
<p>Notification 1 of <%= notification_count %></p> <p>Notification 1 of <%= notification_count %></p>
<% end %> <% end %>
<p class="govuk-!-font-weight-bold"><%= notification.title %></p> <p class="govuk-!-font-weight-bold"><%= notification.title %></p>
<% if notification.page_content.present? %> <% if notification.page_content.present? %>
<div class ="govuk-body"> <div class="govuk-body">
<%= 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" %>
</div> </div>
<% end %> <% end %>
</div> </div>
<% if current_user.present? %> <% if current_user.present? %>
<p class="govuk-grid-column-one-quarter govuk-!-text-align-right "> <p class="govuk-grid-column-one-quarter govuk-!-text-align-right ">
<%= govuk_link_to "Dismiss", dismiss_notifications_path, class: "govuk-link--inverse"%> <%= govuk_link_to "Dismiss", dismiss_notifications_path, class: "govuk-link--inverse" %>
</p> </p>
<% end %> <% end %>
</div> </div>

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

@ -13,5 +13,5 @@
</div> </div>
<br> <br>
<div> <div>
<%= 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 %>
</div> </div>

Loading…
Cancel
Save