diff --git a/app/components/unread_notification.html.erb b/app/components/unread_notification.html.erb deleted file mode 100644 index acdf2d859..000000000 --- a/app/components/unread_notification.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
<%= oldest_unread_notification.title %>
- <%= govuk_link_to oldest_unread_notification.link_text, notification_path(oldest_unread_notification), class: "govuk-link--inverse govuk-!-font-weight-bold"%> -- <%= govuk_link_to "Dismiss", notification_dismiss_path(oldest_unread_notification), class: "govuk-link--inverse"%> -
-Notification 1 of <%= current_user.active_unread_notifications.count %>
+ <% end %> +<%= current_user.oldest_active_unread_notification.title %>
+ <% if current_user.oldest_active_unread_notification.page_content.present? %> ++ <%= govuk_link_to "Dismiss", dismiss_notifications_path, class: "govuk-link--inverse"%> +
+