Skip to content

Commit

Permalink
Add govuk_web_banners gem
Browse files Browse the repository at this point in the history
- add recruitment banners tag between breadcrumbs and main element
  • Loading branch information
KludgeKML committed Dec 2, 2024
1 parent 5577079 commit 6055837
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 "gds-api-adapters"
gem "govspeak"
gem "govuk_app_config"
gem "govuk_publishing_components"
gem "govuk_web_banners"
gem "htmlentities"
gem "httparty"
gem "json"
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,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)
htmlentities (4.3.4)
http-accept (1.7.0)
Expand Down Expand Up @@ -694,6 +697,7 @@ DEPENDENCIES
govuk_publishing_components
govuk_schemas
govuk_test
govuk_web_banners
htmlentities
httparty
json
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 @@ -6,3 +6,5 @@
//= require govuk_publishing_components/components/radio
//= require govuk_publishing_components/components/step-by-step-nav
//= require govuk_publishing_components/components/table

//= 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
@@ -1,6 +1,7 @@
<% content_for :body do %>
<div class="smart_answer">
<%= yield :breadcrumbs %>
<%= render "govuk_web_banners/recruitment_banner" %>
<main id="content" role="main">
<%= yield %>
</main>
Expand Down

0 comments on commit 6055837

Please sign in to comment.