Skip to content

Commit

Permalink
Update Govspeak in document collection partial
Browse files Browse the repository at this point in the history
  • Loading branch information
injms committed Oct 21, 2020
1 parent bd9af86 commit 06864eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/content_items/_document_collection_body.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

<% @content_item.groups.each_with_index do |group, group_index| %>
<%= @content_item.group_heading(group) %>

<% if group["body"].present? %>
<%= render 'govuk_publishing_components/components/govspeak',
content: raw(group["body"]),
direction: page_text_direction %>
<%= render 'govuk_publishing_components/components/govspeak', {
direction: page_text_direction,
} do %>
<%= sanitize(group["body"]) %>
<% end %>
<% end %>

<div data-module="track-click">
Expand Down

0 comments on commit 06864eb

Please sign in to comment.