Skip to content

Commit

Permalink
broken logo image should not display broken link icon
Browse files Browse the repository at this point in the history
  • Loading branch information
blancoj authored and no-reply committed Jan 2, 2020
1 parent dfaaeef commit e421b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/hyrax/collections/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<% @presenter.logo_record.each_with_index do |lr, i| %>
<% if lr[:linkurl].blank? %>
<img alt="<%= lr[:alttext] %>" src="<%= lr[:file_location] %>" />
<img alt="<%= lr[:alttext] %>" src="<%= lr[:file_location] %>" onerror="this.style.display='none'"/>
<% else %>
<a href="<%= lr[:linkurl] %>">
<img alt="<%= lr[:alttext] %>" src="<%= lr[:file_location] %>" />
<img alt="<%= lr[:alttext] %>" src="<%= lr[:file_location] %>" onerror="this.style.display='none'"/>
</a>
<% end %>
Expand Down

0 comments on commit e421b84

Please sign in to comment.