Skip to content

Commit

Permalink
Merge pull request #1277 from alphagov/change-metadata-title-outputting
Browse files Browse the repository at this point in the history
Change metadata title outputting
  • Loading branch information
Bevan authored Mar 19, 2019
2 parents 2948b8a + afabaf9 commit e8c1bbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/components/_important-metadata.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<% if items.any? %>
<div class="app-c-important-metadata<%= margin_bottom_class %>">
<% if title %>
<h2 class="app-c-important-metadata__title"><%= title %></h2>
<h2 class="app-c-important-metadata__title"><%= sanitize title %></h2>
<% end %>
<dl data-module="track-click">
<% items.each do |title, definition| %>
<dt class="app-c-important-metadata__term"><%= title %>: </dt>
<dd class="app-c-important-metadata__definition"><%= definition %></dd>
<dt class="app-c-important-metadata__term"><%= sanitize title.to_s %>: </dt>
<dd class="app-c-important-metadata__definition"><%= sanitize definition %></dd>
<% end %>
</dl>
</div>
Expand Down

0 comments on commit e8c1bbf

Please sign in to comment.