Merge pull request #4608 from G-Chubinidze/gc_SCI_7162

empty repository view archived button logic fix [SCI-7162]
This commit is contained in:
artoscinote 2022-11-11 11:26:47 +01:00 committed by GitHub
commit 41a7609c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,6 @@
<% if @repositories.unscope(where: :archived).present? %>
<%= render template: "repositories/index.html.erb" %>
<% else %>
<% provide(:head_title, t('libraries.index.head_title')) %>
<% provide(:container_class, 'no-second-nav-container') %>
@ -19,9 +22,6 @@
<%= render "view_archived_btn" %>
<div class="content-pane flexible empty-repositories" data-readonly="<%= !can_manage_team?(current_team) %>">
<div class="content-header">
<h1 data-view-mode="active"><%= t('libraries.index.head_title') %></h1>
</div>
<div class="content-body">
<%= image_tag('/images/empty_inventory_state.png', class: 'empty-inventory-img') %>
<h1>
@ -40,4 +40,4 @@
</div>
<%= javascript_include_tag 'repositories/index' %>
<% end %>