-
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 #2140 from alphagov/fix-container-misalignment
Fix brexit links partial alignment
- Loading branch information
Showing
1 changed file
with
24 additions
and
26 deletions.
There are no files selected for viewing
50 changes: 24 additions & 26 deletions
50
app/views/content_items/detailed_guide/_brexit_links.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 |
---|---|---|
@@ -1,28 +1,26 @@ | ||
<div class="govuk-grid-row"> | ||
<% @content_item.title_and_link_sections.each do |section| %> | ||
<% if section[:title].present? %> | ||
<%= render "govuk_publishing_components/components/heading", { | ||
text: section[:title], | ||
heading_level: 2, | ||
font_size: "m", | ||
margin_bottom: 6, | ||
<% @content_item.title_and_link_sections.each do |section| %> | ||
<% if section[:title].present? %> | ||
<%= render "govuk_publishing_components/components/heading", { | ||
text: section[:title], | ||
heading_level: 2, | ||
font_size: "m", | ||
margin_bottom: 6, | ||
} %> | ||
<% end %> | ||
<% if section[:links].present? %> | ||
<% track_category = brexit_link[:track_category] %> | ||
<% links = section[:links].map do |link| | ||
link_to(link[:text], link[:path], class: "govuk-link", data: { | ||
track_action: link[:path], | ||
track_category: track_category, | ||
track_label: section[:title] || "", | ||
module: 'gem-track-click', | ||
}) | ||
end | ||
%> | ||
<%= render "govuk_publishing_components/components/list", { | ||
items: links, | ||
visible_counters: true, | ||
} %> | ||
<% end %> | ||
<% if section[:links].present? %> | ||
<% track_category = brexit_link[:track_category] %> | ||
<% links = section[:links].map do |link| | ||
link_to(link[:text], link[:path], class: "govuk-link", data: { | ||
track_action: link[:path], | ||
track_category: track_category, | ||
track_label: section[:title] || "", | ||
module: 'gem-track-click', | ||
}) | ||
end | ||
%> | ||
<%= render "govuk_publishing_components/components/list", { | ||
items: links, | ||
visible_counters: true, | ||
} %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% end %> |