Skip to content

Commit

Permalink
Update Govspeak in attachments partial
Browse files Browse the repository at this point in the history
  • Loading branch information
injms committed Oct 21, 2020
1 parent 8183cc1 commit bdafdf3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/content_items/_attachments.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
mobile_top_margin: true %>

<% if legacy_pre_rendered_documents.present? %>
<%= render 'govuk_publishing_components/components/govspeak',
content: legacy_pre_rendered_documents.html_safe,
direction: page_text_direction %>
<%= render 'govuk_publishing_components/components/govspeak', {
direction: page_text_direction,
} do %>
<%= sanitize(legacy_pre_rendered_documents) %>
<% end %>
<% else %>
<% attachments.each do |attachment_id| %>
<div class="attachment">
Expand All @@ -16,5 +18,6 @@
</div>
<% end %>
<% end %>

</section>
<% end %>

0 comments on commit bdafdf3

Please sign in to comment.