Skip to content
Snippets Groups Projects
Commit ab4baac2 authored by Kapil Patel's avatar Kapil Patel
Browse files

fix crc dataset show page for unlogged-in user and display correct depositor.

parent 14977dec
No related tags found
1 merge request!200Fixed crc_dataset show page for unlogged-in user and display correct depositor.
Pipeline #8940 failed
......@@ -4,7 +4,7 @@
<div class="row work-type">
<div class="card">
<div class="card-body">
<% if current_user.workflow_action_permission?(presenter) %>
<% if current_user && current_user.workflow_action_permission?(presenter) %>
<%= render 'workflow_actions_widget', presenter: presenter %>
<% end %>
<%= render 'title', presenter: presenter %>
......
<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>
<%= link_to [main_app, recent_document] do %>
<%= render_thumbnail_tag(recent_document, {width: 90, alt: "#{recent_document} #{ t('hyrax.homepage.admin_sets.thumbnail')}" }, {suppress_link: true}) %><%= recent_document %>
<% end %>
</h3>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.proxy_depositor&.first || recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
</p>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
</p>
</div>
</div>
</li>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment