Skip to content

Commit

Permalink
Update _recent_document.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Apr 22, 2024
1 parent ae0300b commit c32e5e7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/views/hyrax/homepage/_recent_document.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<%# OVERRIDE Hyrax 5.0.01 to allow links to support shared search %>
<%# OVERRIDE add conditional for controlling turbolinks %>
<li class="recent-item">
<div class="row">
<div class="col-sm-12">
<span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
<h3>
<%= render_thumbnail_tag recent_document, {}, {suppress_link: true} %>
<%= link_to recent_document.title_or_label, generate_work_url(recent_document, request), data: { turbolinks: block_valkyrie_redirect? } %>
</h3>
<p class="recent-field">
<div class="row">
<div class="col-sm-12">
<span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
<h3>
<%= link_to generate_work_url(recent_document, request), data: { turbolinks: block_valkyrie_redirect? } do %>
<%= markdown("#{render_thumbnail_tag(recent_document, {width: 90}, {suppress_link: true})} #{recent_document.title_or_label}") %>
<% end %>
</h3>
<% if Flipflop.home_page_recent_document_show_depositor? %>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
</p>
<% end %>
Expand All @@ -19,4 +21,4 @@
<% end %>
</div>
</div>
</li>
</li>

0 comments on commit c32e5e7

Please sign in to comment.