Skip to content

Commit

Permalink
Merge pull request #939 from alphagov/more-robust-tests
Browse files Browse the repository at this point in the history
Make HTML publication page more robust
  • Loading branch information
tijmenb authored Jun 15, 2018
2 parents 13dd672 + a996d71 commit 32becbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/content_items/html_publication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
<div class="publication-external">
<ol class="organisation-logos">
<% @content_item.organisations.each do |organisation| %>
<% logo_attributes = @content_item.organisation_logo(organisation) %>
<% next unless logo_attributes %>
<li class="organisation-logo">
<%= render 'govuk_publishing_components/components/organisation_logo', @content_item.organisation_logo(organisation) %>
<%= render 'govuk_publishing_components/components/organisation_logo', logo_attributes %>
</li>
<% end %>
</ol>
Expand Down

0 comments on commit 32becbf

Please sign in to comment.