-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathspeech.html.erb
61 lines (53 loc) · 2.06 KB
/
speech.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<% content_for :extra_head_content do %>
<%= machine_readable_metadata(
schema: :news_article
) %>
<% end %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render 'govuk_publishing_components/components/title', @content_item.title_and_context %>
</div>
<%= render 'shared/translations' %>
<div class="govuk-grid-column-two-thirds">
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
</div>
</div>
<%= render 'shared/publisher_metadata_with_logo' %>
<%= render 'shared/history_notice', content_item: @content_item %>
<% if @content_item.withdrawn? %>
<%= render 'govuk_publishing_components/components/notice', @content_item.withdrawal_notice_component %>
<% end %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="content-bottom-margin">
<div class="responsive-bottom-margin">
<% if @content_item.important_metadata.any? %>
<%= content_tag :div, class: "important-metadata inverse-background responsive-bottom-margin" do %>
<%= render "govuk_publishing_components/components/metadata", {
inverse: true,
other: @content_item.important_metadata,
margin_bottom: 0,
} %>
<% end %>
<% end %>
<%= render 'components/figure',
src: @content_item.image["url"],
alt: @content_item.image["alt_text"],
credit: @content_item.image["credit"],
caption: @content_item.image["caption"] if @content_item.image %>
<%= render "govuk_publishing_components/components/govspeak", {
direction: page_text_direction,
} do %>
<%= raw(@content_item.body) %>
<% end %>
</div>
<%= render 'components/published_dates', {
published: @content_item.published,
last_updated: @content_item.updated,
history: @content_item.history
} %>
</div>
</div>
<%= render 'shared/sidebar_navigation' %>
</div>
<%= render 'shared/footer_navigation' %>