-
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
Customise detailed guide pages for Brexit hubs #2097
Conversation
Further modifications - Hide publisher metadata and print link - Render description field as a link - Hide print link at bottom of page - Hide the context field ("Guidance") from above the title - Replace the superbreadcrumb with a standard breadcrumb. - Reduce description size and hide published date
@@ -42,6 +42,8 @@ | |||
<% unless @do_not_show_breadcrumbs %> | |||
<% if @content_item.try(:back_link) %> | |||
<%= render 'govuk_publishing_components/components/back_link', href: @content_item.back_link %> | |||
<% elsif @content_item.brexit_hub_page? %> | |||
<%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: [ { url: "/", title: "Home" } , { url: "/transition", title: "Brexit" } ] %> |
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.
Once we have updated the contextual nav in publishing components this hardcoding can be removed.
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.
Nice :-)
I wonder if we could go a bit further in the helper, and maybe use the locale file so that we can avoid putting content in the view, and isolate the changes a bit further?
- english only at this point - simplify brexit_hub_page presenter
What
We are using the detailed guide doc type to publish the brexit child taxon pages, but we need to customise a few things.
See commit message for more details.
The review apps for this pr are pointed at integration where the detailed guides have been published.
https://trello.com/c/7bevQJP4/1497-investigate-options-to-hide-display-components-on-a-detailed-guide-page
https://trello.com/c/TaSxtjir/1540-build-custom-templates-for-brexit-child-taxon-pages