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) %>
|
|
|
|
<% provide(:sidebar_title, t('sidebar.repositories.sidebar_title')) %>
|
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<%= render partial: "sidebar", locals: { repositories: @repositories, archived: params[:archived] } %>
|
|
|
|
<% end %>
|
2022-09-27 16:25:39 +08:00
|
|
|
<%= render "view_archived_btn" %>
|
2017-05-22 23:54:30 +08:00
|
|
|
<% end %>
|
2017-05-30 21:09:09 +08:00
|
|
|
|
2020-07-02 20:35:48 +08:00
|
|
|
<!-- table template -->
|
|
|
|
<template id="RepositoriesListTable">
|
2020-06-03 19:42:09 +08:00
|
|
|
<table id="repositoriesList" class="table"
|
2020-07-02 20:29:18 +08:00
|
|
|
data-source="<%= team_repositories_path(current_team, format: :json) %>">
|
2020-06-03 19:42:09 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<div class="sci-checkbox-container">
|
2020-06-09 19:16:50 +08:00
|
|
|
<input value="1" type="checkbox" class="sci-checkbox select-all-checkbox">
|
2020-06-03 19:42:09 +08:00
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th><%= t('libraries.index.table.name') %></th>
|
|
|
|
<th><%= t('libraries.index.table.number_of_items') %></th>
|
|
|
|
<th><%= t('libraries.index.table.shared') %></th>
|
|
|
|
<th><%= t('libraries.index.table.ownership') %></th>
|
|
|
|
<th><%= t('libraries.index.table.added_on') %></th>
|
|
|
|
<th><%= t('libraries.index.table.added_by') %></th>
|
|
|
|
<th><%= t('libraries.index.table.archived_on') %></th>
|
|
|
|
<th><%= t('libraries.index.table.archived_by') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Repositories action buttons -->
|
|
|
|
<template id="repositoriesListButtons">
|
2020-07-08 19:42:27 +08:00
|
|
|
<% if can_create_repositories?(current_team) %>
|
2023-06-19 14:04:58 +08:00
|
|
|
<a id="createRepoBtn" class="btn btn-primary" title="<%= t('libraries.index.no_libraries.create_new_button_tooltip') %>"
|
2023-05-24 15:57:06 +08:00
|
|
|
data-remote="true"
|
|
|
|
data-view-mode="active"
|
|
|
|
href="<%= create_modal_team_repositories_path(current_team) %>">
|
2023-06-08 14:33:37 +08:00
|
|
|
<span class="sn-icon sn-icon-new-task"></span>
|
2023-05-24 15:57:06 +08:00
|
|
|
<span class="hidden-xs"><%= t('libraries.index.no_libraries.create_new_button') %></span>
|
2020-07-08 19:42:27 +08:00
|
|
|
</a>
|
|
|
|
<% end %>
|
2023-05-24 15:57:06 +08:00
|
|
|
|
|
|
|
<%= render partial: 'shared/state_view_switch', locals: {
|
|
|
|
disabled: false,
|
|
|
|
switchable: true,
|
|
|
|
archived: params[:archived],
|
|
|
|
active_url: repositories_path,
|
|
|
|
archived_url: repositories_path(archived: true),
|
|
|
|
} %>
|
|
|
|
</div>
|
2020-06-03 19:42:09 +08:00
|
|
|
</template>
|
|
|
|
|
2023-05-24 15:57:06 +08:00
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
|
|
<action-toolbar actions-url="<%= actions_toolbar_team_repositories_url(current_team) %>" />
|
|
|
|
</div>
|
|
|
|
|
2018-07-19 23:56:42 +08:00
|
|
|
<%= javascript_include_tag "repositories/index" %>
|
2023-05-30 22:15:20 +08:00
|
|
|
<%= javascript_include_tag "repositories/share_modal" %>
|
2020-06-01 16:24:03 +08:00
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
2023-05-30 22:15:20 +08:00
|
|
|
<%= javascript_include_tag "vue_components_action_toolbar" %>
|