Skip to content

Commit

Permalink
🐛 Fix list collection thumbnail alt text
Browse files Browse the repository at this point in the history
This commit will fix the alt text for the collection thumbnail on the
dashboard and the Allinson Flex update will fix the thumbnail for the
work on the dashboard.

Ref:
  - samvera-labs/allinson_flex#121
  - #471
  • Loading branch information
kirkkwang committed Jul 27, 2023
1 parent 07a5fe4 commit 0d2250e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/samvera-labs/allinson_flex.git
revision: 2141b481e2f4a35b4df87c54edf6bc7c1611bfb0
revision: 72e2cbeda64ea68769067ebb94ff1766101a94c3
specs:
allinson_flex (0.1.0)
json_schemer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<% if (collection_presenter.thumbnail_path == nil) %>
<span class="<%= Hyrax::ModelIcon.css_class_for(::Collection) %> collection-icon-small"></span>
<% else %>
<%= image_tag(collection_presenter.thumbnail_path, alt: "#{collection_presenter.title_or_label} #{t('hyrax.dashboard.my.sr.thumbnail')}") %>
<%= image_tag(collection_presenter.thumbnail_path, alt: block_for(name: 'default_collection_image_text') || "#{collection_presenter.title_or_label} #{t('hyrax.dashboard.my.sr.thumbnail')}") %>
<% end %>
</div>
<%= link_to collection_presenter.show_path do %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/my/collections/_list_collections.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<% if (collection_presenter.thumbnail_path == nil) %>
<span class="<%= Hyrax::ModelIcon.css_class_for(::Collection) %> collection-icon-small"></span>
<% else %>
<%= image_tag(collection_presenter.thumbnail_path, alt: "#{collection_presenter.title_or_label} #{t('hyrax.dashboard.my.sr.thumbnail')}") %>
<%= image_tag(collection_presenter.thumbnail_path, alt: block_for(name: 'default_collection_image_text') || "#{collection_presenter.title_or_label} #{t('hyrax.dashboard.my.sr.thumbnail')}") %>
<% end %>
</div>
<%= link_to collection_presenter.show_path, id: "src_copy_link#{id}" do %>
Expand Down

0 comments on commit 0d2250e

Please sign in to comment.