mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
ffbf36e1e8
Fix various issues with archived labels in repositories [SCI-10531]
28 lines
1.3 KiB
Text
28 lines
1.3 KiB
Text
<% provide(:head_title, t("libraries.index.head_title")) %>
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
|
|
|
<% if current_team %>
|
|
<% provide(:sidebar_url, sidebar_repositories_path) %>
|
|
<div class="content-pane flexible <%= params[:view_mode] ? :archived : :active %> repositories-index">
|
|
<div class="content-header">
|
|
<div class="title-row">
|
|
<h1 data-view-mode="active"><%= t('libraries.index.head_title') %></h1>
|
|
<h1 data-view-mode="archived"><span><%= t('labels.archived')%></span> <%= t('libraries.index.head_title_archived') %></h1>
|
|
</div>
|
|
</div>
|
|
<div class="content-body" data-e2e="e2e-CO-inventories">
|
|
<div id="repositoriesTable" class="fixed-content-body">
|
|
<repositories-table
|
|
actions-url="<%= actions_toolbar_team_repositories_path(current_team) %>"
|
|
data-source="<%= repositories_path(format: :json) %>"
|
|
create-url="<%= repositories_path if can_create_repositories?(current_team) %>"
|
|
active-page-url="<%= repositories_path %>"
|
|
archived-page-url="<%= repositories_path(view_mode: :archived) %>"
|
|
current-view-mode="<%= params[:view_mode] || :active %>"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%= javascript_include_tag 'vue_repositories_table' %>
|
|
<% end %>
|