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

Recruitment banner gem test #3405

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

KludgeKML
Copy link
Contributor

Replaces the in-built banner code with that from the govuk_web_banners gem.

https://trello.com/c/aYXKcrCo/375-create-govukwebbanner-gem-with-support-for-recruitment-banners

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@@ -31,6 +31,8 @@

<main role="main" id="content" class="<%= @content_item.schema_name.dasherize %>" lang="<%= I18n.locale %>">
<span id="Top"></span>
<%= render partial: "govuk_web_banners/recruitment_banner" if recruitment_banner.present? %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would be <%= render "govuk_web_banners/recruitment_banner" %>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - yeah, I've done that.

- banner partial call is added above the yield to :main in the layout. This is
  a single-point replacement that matches where the banners are currently being
  added (right at the top of the body of the affected views)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants