2022-03-18 21:10:34 +08:00
|
|
|
<template id="repositoryToolbar">
|
|
|
|
<!-- LEFT TOOLBAR BLOCK -->
|
|
|
|
<div class="toolbar-left-block">
|
|
|
|
<% if @repository.active? %>
|
|
|
|
<% if @repository.repository_snapshots.provisioning.any? %>
|
|
|
|
<div class='repository-provisioning-notice auto-shrink-button'>
|
|
|
|
<i class="fas fa-info-circle"></i>
|
|
|
|
<span class="button-text"><%= t('repositories.index.snapshot_provisioning_in_progress') %></span>
|
|
|
|
</div>
|
2020-05-15 23:46:59 +08:00
|
|
|
<% end %>
|
|
|
|
<% if can_create_repository_rows?(@repository) %>
|
2022-08-04 17:05:55 +08:00
|
|
|
<button type="button" data-toggle="tooltip" data-placement="bottom" title="<%= t('repositories.show.button_tooltip.new') %>"
|
2022-03-18 21:10:34 +08:00
|
|
|
class="btn btn-primary editAdd auto-shrink-button"
|
|
|
|
id="addRepositoryRecord" data-view-mode="active">
|
|
|
|
<span class="fas fa-plus"></span>
|
|
|
|
<span class="button-text"><%= t("repositories.add_new_record") %></span>
|
2020-05-15 23:46:59 +08:00
|
|
|
</button>
|
2022-08-04 17:05:55 +08:00
|
|
|
<button type="button" data-toggle="tooltip" data-placement="bottom" title="<%= t('repositories.show.button_tooltip.import') %>"
|
2022-03-18 21:10:34 +08:00
|
|
|
class="btn btn-light editImport auto-shrink-button"
|
|
|
|
id="importRecordsButton" data-view-mode="active">
|
|
|
|
<span class="fas fa-upload"></span>
|
|
|
|
<span class="button-text"><%= t('repositories.index.options_dropdown.import_items') %></span>
|
2020-06-10 04:16:55 +08:00
|
|
|
</button>
|
|
|
|
<% end %>
|
2022-03-18 21:10:34 +08:00
|
|
|
<%= render partial: 'repositories/toolbar/row_actions' %>
|
2022-03-30 16:54:55 +08:00
|
|
|
<% if @repository.repository_rows.with_active_reminders(current_user).any? %>
|
2022-08-04 17:05:55 +08:00
|
|
|
<button type="button" data-toggle="tooltip" data-placement="bottom" title="<%= t("repositories.hide_reminders") %>"
|
2022-03-30 16:54:55 +08:00
|
|
|
class="btn btn-light auto-shrink-button"
|
|
|
|
id="hideRepositoryReminders"
|
|
|
|
data-view-mode="active"
|
|
|
|
data-hide-reminders-url="<%= team_repository_hide_reminders_url(@current_team, @repository) %>">
|
|
|
|
<span class="fas fa-bell-slash"></span>
|
|
|
|
<span class="button-text"><%= t("repositories.hide_reminders") %></span>
|
|
|
|
</button>
|
|
|
|
<% end %>
|
2020-06-17 20:05:23 +08:00
|
|
|
<% end %>
|
2022-03-18 21:10:34 +08:00
|
|
|
<div class="archived-label" data-view-mode="archived">
|
|
|
|
<%= render partial: 'repositories/toolbar/archive_label' %>
|
|
|
|
</div>
|
|
|
|
<% if can_manage_repository_filters?(@repository) %>
|
|
|
|
<div class="toolbar-save-filters">
|
|
|
|
<%= render partial: 'repositories/toolbar/save_filters' %>
|
2022-02-21 17:09:59 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2022-03-18 21:10:34 +08:00
|
|
|
</div>
|
2022-02-21 17:09:59 +08:00
|
|
|
|
2022-03-18 21:10:34 +08:00
|
|
|
<!-- RIGHT TOOLBAR BLOCK -->
|
|
|
|
<div class="toolbar-right-block">
|
2022-08-09 16:23:40 +08:00
|
|
|
<div class="active-reminders-filter"
|
|
|
|
title="<%= t('repositories.index.active_reminders.description') %>"
|
|
|
|
data-checked-title="<%= t('repositories.index.active_reminders.checked_description') =%>"
|
|
|
|
data-unchecked-title="<%= t('repositories.index.active_reminders.description') =%>"
|
|
|
|
>
|
|
|
|
<div class="sci-checkbox-container">
|
|
|
|
<input id="only_reminders" type="checkbox" class="sci-checkbox" value="1">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
<span data-click-target="#only_reminders">
|
|
|
|
<span class="active-reminders-label"><%= t('repositories.index.active_reminders.label') %></span>
|
|
|
|
<span class="active-reminders-short-label"><%= t('repositories.index.active_reminders.short_label') %></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-03-18 21:10:34 +08:00
|
|
|
<div class="toolbar-filters"></div>
|
|
|
|
<% if @repository.is_a?(BmtRepository) %>
|
|
|
|
<div class="toolbar-bmt-filters">
|
|
|
|
<%= render partial: 'repositories/toolbar/bmt' %>
|
2021-08-24 21:55:13 +08:00
|
|
|
</div>
|
2021-11-09 16:28:51 +08:00
|
|
|
<% end %>
|
2022-03-31 20:04:00 +08:00
|
|
|
<div class="toolbar-search"></div>
|
2022-03-18 21:10:34 +08:00
|
|
|
</div>
|
2022-03-30 16:54:55 +08:00
|
|
|
</template>
|