Skip to content

Commit

Permalink
Merge pull request #635 from IU-Libraries-Joint-Development/essi-1918…
Browse files Browse the repository at this point in the history
…_hide_file_details

[ESSI-1918] only show file depositor, activity log to parent work editors
  • Loading branch information
rwingiupui authored Nov 18, 2024
2 parents ad5b4c0 + 8a00a57 commit 41391d9
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 41391d9

Please sign in to comment.