-
Notifications
You must be signed in to change notification settings - Fork 17
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_banners gem #3882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we've had a good percentage of banner requests for browse pages so am wondering what best course of action is here... This was always the bit of the jigsaw I was worried about, as I'm aware that we add the banner in different files/locations depending on the document type!
We could just add dependency in these PR's and then when we need to add a banner we will have to figure out which file to add the partial?
- We don't include the partial in this commit, just the dependencies. Partials are a bit more complex in collections because there are some pages where the partial needs to go within the main block. The partial can be added later in the exact place it's needed. This makes collections a bit more work for the developer, but at least for each page type the partial will only have to be added once.
1610a58
to
65407ed
Compare
Yeah, that seems reasonable. It'll mean each time a banner gets added we'll have to work out whether or not the partial is included, but that should be relatively quick (and the partial can easily be added ahead of the go-live time for the banner). |
Yes I think agree with this suggestion. Otherwise we run the risk of the banner appearing in odd places. Once the requests come in we can add the banner to the appropriate partials. On the brightside once they're in, they won't need to be removed from here again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Partials are a bit more complex in collections because there are some
pages where the partial needs to go within the main block. The partial
can be added later in the exact place it's needed. This makes collections
a bit more work for the developer, but at least for each page type the
partial will only have to be added once.
https://trello.com/c/aYXKcrCo/375-create-govukwebbanner-gem-with-support-for-recruitment-banners