-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html.erb
More file actions
42 lines (39 loc) · 1.16 KB
/
index.html.erb
File metadata and controls
42 lines (39 loc) · 1.16 KB
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
<% content_for :page_title, "New-style blocks" %>
<div class="govuk-grid-row content-block-manager-header">
<div class="govuk-grid-column-one-half">
<h1 class="govuk-heading-xl content-block-manager-header--heading">
New-style blocks
</h1>
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<% @editions.each_with_index do |edition, index| %>
<div data-testid="homepage-item-<%= index %>">
<%= render "govuk_publishing_components/components/summary_card", {
title: edition.title,
rows: [
{
key: "Time period name",
value: edition.title,
},
{
key: "Lead organisation",
value: edition.lead_organisation.name,
},
{
key: "Status",
value: render(Shared::DocumentFullStatusComponent.new(edition: edition)),
},
],
summary_card_actions: [
{
label: "View",
href: block_time_period_edition_path(edition),
},
],
} %>
</div>
<% end %>
</div>
</div>