diff --git a/Gemfile b/Gemfile index 314849ff2..bafc88826 100644 --- a/Gemfile +++ b/Gemfile @@ -64,6 +64,7 @@ gem "auto_strip_attributes" # Use sidekiq for background processing gem "sidekiq" gem "sidekiq-cron" +gem "unread" group :development, :test do # Check gems for known vulnerabilities diff --git a/app/components/unread_notification.html.erb b/app/components/unread_notification.html.erb new file mode 100644 index 000000000..acdf2d859 --- /dev/null +++ b/app/components/unread_notification.html.erb @@ -0,0 +1,15 @@ +
<%= 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"%> +
+