-
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.
Merge pull request #2350 from alphagov/add-button-to-consultation
Add single page notification button to `consultation` template
- Loading branch information
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 %> |