File tree 4 files changed +22
-8
lines changed
4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def render_template
135
135
end
136
136
137
137
# use these and `@content_item.base_path` in the template
138
- @notification_button_visible = in_single_page_notifications_trial?
138
+ @notification_button_visible = in_single_page_notifications_trial? && ! @content_item . brexit_child_taxon
139
139
@include_single_page_notification_button_js = account_session_header . present?
140
140
141
141
request . variant = :print if params [ :variant ] == "print"
@@ -216,6 +216,9 @@ def in_single_page_notifications_trial?
216
216
%w[
217
217
/government/publications/open-standards-for-government
218
218
/government/publications/identity-proofing-and-verification-of-an-individual
219
+ /guidance/travel-to-england-from-another-country-during-coronavirus-covid-19
220
+ /guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do
221
+ /government/publications/face-coverings-when-to-wear-one-and-how-to-make-your-own
219
222
] . include? @content_item . base_path
220
223
end
221
224
end
Original file line number Diff line number Diff line change 37
37
</ div >
38
38
39
39
<%= render 'shared/publisher_metadata_with_logo' unless brexit_child_taxon %>
40
+
40
41
<%= render 'shared/history_notice' , content_item : @content_item %>
41
42
<%= render 'govuk_publishing_components/components/notice' , @content_item . withdrawal_notice_component %>
42
43
65
66
<%= render 'components/published-dates' , {
66
67
published : @content_item . published ,
67
68
last_updated : @content_item . updated ,
68
- history : @content_item . history
69
+ history : @content_item . history ,
70
+ margin_bottom : 3 ,
69
71
} unless brexit_child_taxon %>
72
+
73
+ <%= render 'govuk_publishing_components/components/single_page_notification_button' , {
74
+ base_path : @content_item . base_path ,
75
+ js_enhancement : @include_single_page_notification_button_js ,
76
+ button_location : "bottom" ,
77
+ margin_bottom : 0 ,
78
+ } if @notification_button_visible %>
70
79
</ div >
71
80
<% end %>
72
81
<%= render "govuk_publishing_components/components/print_link" , {
Original file line number Diff line number Diff line change 18
18
</ div >
19
19
20
20
<%= render 'shared/publisher_metadata_with_logo' %>
21
- <%= render 'govuk_publishing_components/components/single_page_notification_button' , {
22
- base_path : @content_item . base_path ,
23
- js_enhancement : @include_single_page_notification_button_js ,
24
- margin_bottom : 6 ,
25
- button_location : "top" ,
26
- } if @notification_button_visible %>
21
+
27
22
<%= render 'shared/history_notice' , content_item : @content_item %>
28
23
29
24
<%= render 'govuk_publishing_components/components/notice' , @content_item . withdrawal_notice_component %>
Original file line number Diff line number Diff line change 16
16
</ div >
17
17
</ div >
18
18
</ div >
19
+
20
+ <%= render 'govuk_publishing_components/components/single_page_notification_button' , {
21
+ base_path : @content_item . base_path ,
22
+ js_enhancement : @include_single_page_notification_button_js ,
23
+ margin_bottom : 6 ,
24
+ button_location : "top" ,
25
+ } if @notification_button_visible %>
You can’t perform that action at this time.
0 commit comments