mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Merge pull request #4608 from G-Chubinidze/gc_SCI_7162
empty repository view archived button logic fix [SCI-7162]
This commit is contained in:
commit
41a7609c3e
1 changed files with 39 additions and 39 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Reference in a new issue