Skip to content

Commit

Permalink
Merge pull request #4479 from alphagov/add-govuk_web_banners-gem
Browse files Browse the repository at this point in the history
Add govuk web banners gem
  • Loading branch information
KludgeKML authored Dec 2, 2024
2 parents a4ac184 + d2b7c3e commit bb65065
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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 @@ -187,6 +187,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 @@ -738,6 +741,7 @@ DEPENDENCIES
govuk_publishing_components
govuk_schemas
govuk_test
govuk_web_banners
htmlentities
i18n-coverage
listen
Expand Down
2 changes: 2 additions & 0 deletions app/assets/javascripts/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
//= require govuk_publishing_components/components/tabs

//= require govuk_publishing_components/components/chart

//= require govuk_web_banners/dependencies
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<% unless current_page?(root_path) || !(publication || @calendar) || remove_breadcrumbs(content_item) %>
<%= render 'govuk_publishing_components/components/contextual_breadcrumbs', content_item: content_item_hash %>
<% end %>
<%= render "govuk_web_banners/recruitment_banner" %>
<% if local_assigns %>
<%= yield %>
<%= yield :after_content %>
Expand Down

0 comments on commit bb65065

Please sign in to comment.