Skip to content

Commit

Permalink
show file manager unless member count is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Dec 3, 2024
1 parent 7ec4aa7 commit 3df78df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_show_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="col-sm-6 text-right">
<% if presenter.editor? && !workflow_restriction?(presenter) %>
<%= link_to t('.edit'), edit_polymorphic_path([main_app, presenter]), class: 'btn btn-secondary' %>
<% if presenter.member_count > 1 %>
<% if presenter.member_count > 0 %>
<%= link_to t("hyrax.file_manager.link_text"), polymorphic_path([main_app, :file_manager, presenter]), class: 'btn btn-secondary' %>
<% end %>
<% if presenter.valid_child_concerns.length > 0 %>
Expand Down

0 comments on commit 3df78df

Please sign in to comment.