mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 17:04:31 +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,9 +1,12 @@
|
|||
<% provide(:head_title, t('libraries.index.head_title')) %>
|
||||
<% provide(:container_class, 'no-second-nav-container') %>
|
||||
<% 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') %>
|
||||
|
||||
<% provide(:sidebar_url, sidebar_repositories_path) %>
|
||||
<% provide(:sidebar_title, t('sidebar.repositories.sidebar_title')) %>
|
||||
<%= content_for :sidebar do %>
|
||||
<% provide(:sidebar_url, sidebar_repositories_path) %>
|
||||
<% provide(:sidebar_title, t('sidebar.repositories.sidebar_title')) %>
|
||||
<%= content_for :sidebar do %>
|
||||
<div class="empty-sidebar-container">
|
||||
<ul class="repo-template">
|
||||
<li><%= t('repositories.index.sidebar_repo1') %></li>
|
||||
|
@ -14,14 +17,11 @@
|
|||
<%= t('repositories.index.sidebar_instructions') %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= render "view_archived_btn" %>
|
||||
<%= 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-pane flexible empty-repositories" data-readonly="<%= !can_manage_team?(current_team) %>">
|
||||
<div class="content-body">
|
||||
<%= image_tag('/images/empty_inventory_state.png', class: 'empty-inventory-img') %>
|
||||
<h1>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<div class="description"><%= t('repositories.index.empty_description_no_create') %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= javascript_include_tag 'repositories/index' %>
|
||||
</div>
|
||||
|
||||
<%= javascript_include_tag 'repositories/index' %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue