2018-03-20 21:45:57 +08:00
|
|
|
<% provide(:head_title, t("libraries.index.head_title")) %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
2017-05-22 23:54:30 +08:00
|
|
|
|
|
|
|
<% if current_team %>
|
2021-01-06 17:13:10 +08:00
|
|
|
<% provide(:sidebar_url, sidebar_repositories_path) %>
|
2024-04-18 22:19:18 +08:00
|
|
|
<div class="content-pane flexible <%= params[:view_mode] ? :archived : :active %> repositories-index">
|
2024-01-06 01:58:12 +08:00
|
|
|
<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>
|
2024-04-11 18:45:00 +08:00
|
|
|
<div class="content-body" data-e2e="e2e-CO-inventories">
|
2024-01-06 01:58:12 +08:00
|
|
|
<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>
|
2023-05-24 15:57:06 +08:00
|
|
|
</div>
|
|
|
|
|
2024-01-06 01:58:12 +08:00
|
|
|
<%= javascript_include_tag 'vue_repositories_table' %>
|
|
|
|
<% end %>
|