Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notification banner to inform users of service outage #855

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/views/layouts/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<%= govuk_back_link(href: yield(:back_link_url)) if content_for?(:back_link_url) %>
<%= yield(:breadcrumbs) if content_for?(:breadcrumbs) %>
<main class="govuk-main-wrapper" id="main-content" role="main">
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) %>
<%= govuk_notification_banner title: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<% end %>
<%= render(FlashMessageComponent.new(flash: flash)) %>
<%= yield :content %>
</main>
Expand Down
3 changes: 3 additions & 0 deletions app/views/layouts/check_records_layout.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<%= govuk_back_link(href: yield(:back_link_url)) if content_for?(:back_link_url) %>
<%= yield(:breadcrumbs) if content_for?(:breadcrumbs) %>
<main class="govuk-main-wrapper" id="main-content" role="main">
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) %>
<%= govuk_notification_banner title: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<% end %>
<%= render(FlashMessageComponent.new(flash: flash)) %>

<% if content_for?(:two_thirds) %>
Expand Down
3 changes: 3 additions & 0 deletions config/feature_flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ feature_flags:
bulk_search:
author: Felix Clack
description: Enable bulk search in Check the record
downtime_banner:
author: Richard Pattinson
description: Display banner informing users of service downtime
Loading