From c32e5e7b69d014cac51cb0b8872dd54aa8d38856 Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Mon, 22 Apr 2024 14:57:13 -0700 Subject: [PATCH] Update _recent_document.html.erb --- .../hyrax/homepage/_recent_document.html.erb | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/hyrax/homepage/_recent_document.html.erb b/app/views/hyrax/homepage/_recent_document.html.erb index bdf4e4519..b8f93dbcf 100644 --- a/app/views/hyrax/homepage/_recent_document.html.erb +++ b/app/views/hyrax/homepage/_recent_document.html.erb @@ -1,14 +1,16 @@ <%# OVERRIDE Hyrax 5.0.01 to allow links to support shared search %> <%# OVERRIDE add conditional for controlling turbolinks %>
  • -
    -
    - <%= t('hyrax.homepage.recently_uploaded.document.title_label') %> -

    - <%= 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? } %> -

    -

    +

    +
    + <%= t('hyrax.homepage.recently_uploaded.document.title_label') %> +

    + <%= 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 %> +

    + <% if Flipflop.home_page_recent_document_show_depositor? %> +

    <%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>: <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>

    <% end %> @@ -19,4 +21,4 @@ <% end %>
    -
  • + \ No newline at end of file