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 govuk_web_banner gem #3456

Merged
merged 1 commit into from
Dec 3, 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
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ gem "govuk_ab_testing"
gem "govuk_app_config"
gem "govuk_personalisation"
gem "govuk_publishing_components"
gem "govuk_web_banners"
gem "htmlentities"
gem "plek"
gem "rack-utf8_sanitizer"
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ GEM
capybara (>= 3.36)
puma
selenium-webdriver (>= 4.0)
govuk_web_banners (0.1.0)
govuk_publishing_components
rails (>= 7)
hashdiff (1.1.1)
highline (3.0.1)
htmlentities (4.3.4)
Expand Down Expand Up @@ -666,6 +669,7 @@ DEPENDENCIES
govuk_publishing_components
govuk_schemas
govuk_test
govuk_web_banners
htmlentities
i18n-coverage
minitest-reporters
Expand Down
2 changes: 2 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
//= require govuk_publishing_components/components/single-page-notification-button
//= require govuk_publishing_components/components/step-by-step-nav

//= require govuk_web_banners/dependencies

//= require_tree ./modules
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<% end %>
<% end %>

<%= render "govuk_web_banners/recruitment_banner" %>

<%= yield :header %>

<main role="main" id="content" class="<%= @content_item.schema_name.dasherize %>" lang="<%= I18n.locale %>">
Expand Down