-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support page notification button on consultation
Add support for the single page notification buton to the consultation template. The button will not appear until the feature is enabled on pages with this content type. Seeing as the button is always grouped together with the published dates component I created a new `published_dates_with_notification_button` partial to be shared between publications, detailed_guides and consultations.
- Loading branch information
1 parent
581f785
commit 85d7a02
Showing
4 changed files
with
17 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/views/shared/_published_dates_with_notification_button.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% brexit_child_taxon ||= nil %> | ||
|
||
<%= render 'components/published-dates', { | ||
published: @content_item.published, | ||
last_updated: @content_item.updated, | ||
history: @content_item.history, | ||
margin_bottom: 3, | ||
} unless brexit_child_taxon %> | ||
<%= render 'govuk_publishing_components/components/single_page_notification_button', { | ||
base_path: @content_item.base_path, | ||
js_enhancement: @include_single_page_notification_button_js, | ||
button_location: "bottom", | ||
margin_bottom: 0, | ||
} if @notification_button_visible %> |