Skip to content

Commit

Permalink
Merge pull request #3456 from alphagov/add-govuk_web_banner-gem
Browse files Browse the repository at this point in the history
Add govuk_web_banner gem
  • Loading branch information
KludgeKML authored Dec 3, 2024
2 parents 8209fb3 + e3cda1c commit 4ff56c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
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

0 comments on commit 4ff56c2

Please sign in to comment.