Skip to content

Commit

Permalink
[ESSI-1918] only show file depositor, activity log to parent work edi…
Browse files Browse the repository at this point in the history
…tors
  • Loading branch information
aploshay committed Nov 12, 2024
1 parent 3eafffb commit 8a00a57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/views/hyrax/file_sets/_show_details.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<h2>File Details</h2>
<dl class="dl-horizontal file-show-term file-show-details">
<% if current_ability&.can?(:edit, @presenter.parent.id) %>
<dt>Depositor</dt>
<dd itemprop="accountablePerson" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><%= link_to_profile @presenter.depositor %></span></dd>
<% end %>
<dt>Date Uploaded</dt>
<dd itemprop="datePublished"><%= @presenter.date_uploaded %></dd>
<dt>Date Modified</dt>
Expand Down
4 changes: 3 additions & 1 deletion app/views/hyrax/file_sets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

<%# TODO: render 'show_descriptions' See https://github.com/samvera/hyrax/issues/1481 %>
<%= render 'show_details' %>
<%= render 'hyrax/users/activity_log', events: @presenter.events %>
<% if current_ability&.can?(:edit, @presenter.parent.id) %>
<%= render 'hyrax/users/activity_log', events: @presenter.events %>
<% end %>
</div><!-- /columns second -->
</div> <!-- /.row -->
</div><!-- /.container-fluid -->

0 comments on commit 8a00a57

Please sign in to comment.