Skip to content

Commit

Permalink
Adding alt attribute on thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhardes committed Sep 25, 2024
1 parent e4886f1 commit 36b4120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/catalog/_thumbnail_list_default.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% model = document.hydra_model %>
<div class="col-md-3">
<% if model == Hyrax::PcdmCollection || model < Hyrax::PcdmCollection %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag({}, suppress_link: true) %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag({}, suppress_link: true, alt: document.title_or_label) %>
<% else %>
<div class="list-thumbnail">
<%= document_presenter(document)&.thumbnail&.thumbnail_tag %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(alt: document.title_or_label) %>
</div>
<% end %>
</div>

0 comments on commit 36b4120

Please sign in to comment.