Move print button for shared repository in view mode [SCI-7277] (#4550)

This commit is contained in:
ajugo 2022-10-19 14:10:04 +02:00 committed by GitHub
parent 9639e30c72
commit 0a56d772b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,8 +64,8 @@
</button>
</span>
<% elsif @repository.shared_with_read?(current_team) %>
<%= render partial: 'repositories/toolbar/print_label_button' %>
<p class="view-only-label"><%= t('repositories.index.view_only_permission_label') %></p>
<%= render partial: 'repositories/toolbar/print_label_button' %>
<% elsif can_read_repository?(@repository) %>
<%= render partial: 'repositories/toolbar/print_label_button' %>
<% end %>