2021-01-25 22:36:23 +08:00
|
|
|
<div class="content-header sticky-header">
|
|
|
|
<div class="title-row">
|
|
|
|
<h1 data-view-mode="active"><%= t('projects.index.head_title') %></h1>
|
|
|
|
<h1 data-view-mode="archived"><i class="fas fa-archive"></i> <%= t('projects.index.head_title_archived') %></h1>
|
2020-12-08 15:30:47 +08:00
|
|
|
|
2021-01-25 22:36:23 +08:00
|
|
|
<div class="sci-btn-group header-actions">
|
|
|
|
<%= render layout: 'shared/view_switch', locals: { disabled: false } do %>
|
2021-01-29 05:47:08 +08:00
|
|
|
<li class="view-switch-cards cards-switch active">
|
2021-01-25 22:36:23 +08:00
|
|
|
<i class="fas fa-th-large button-icon"></i> <%= t('projects.index.header.cards') %>
|
|
|
|
</li>
|
2021-01-14 23:24:28 +08:00
|
|
|
|
2021-01-29 05:47:08 +08:00
|
|
|
<li class="view-switch-list cards-switch ">
|
2021-01-25 22:36:23 +08:00
|
|
|
<i class="fas fa-list button-icon"></i> <%= t('projects.index.header.table') %>
|
|
|
|
</li>
|
2021-01-29 05:47:08 +08:00
|
|
|
<div role="separator" class="divider"></div>
|
2021-01-25 22:36:23 +08:00
|
|
|
<li class="view-switch-active archive-switch" data-view-mode="archived" data-url="<%= projects_path %>">
|
|
|
|
<i class="fas fa-rocket button-icon"></i> <%= t('projects.index.header.active_projects') %>
|
|
|
|
</li>
|
2021-01-14 23:24:28 +08:00
|
|
|
|
2021-01-25 22:36:23 +08:00
|
|
|
<li class="view-switch-archived archive-switch" data-view-mode="active" data-url="<%= projects_path(view_mode: 'archived') %>">
|
|
|
|
<i class="fas fa-archive button-icon"></i> <%= t('projects.index.header.archived_projects') %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2021-02-01 20:16:21 +08:00
|
|
|
<%= render layout: 'shared/filter_dropdown', locals: {
|
|
|
|
container_class: 'projects-filters',
|
|
|
|
dropdown_title: t("filters_modal.title"),
|
|
|
|
search_field_history_key: 'project_filters_per_team'
|
|
|
|
} do %>
|
|
|
|
<%= render partial: 'shared/filter_dropdown/text_search', locals: {container_class: ''} %>
|
|
|
|
<%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'created-on-filter', label: t("filters_modal.created_on.label"), view_mode: nil } %>
|
|
|
|
<div class="select-block">
|
|
|
|
<label><%= t("projects.index.filters_modal.members.label") %></label>
|
|
|
|
<select class="members-filter"
|
|
|
|
data-ajax-url="<%= users_filter_projects_path %>"
|
|
|
|
data-placeholder="<%= t('projects.index.filters_modal.members.placeholder') %>">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<%= render partial: 'shared/filter_dropdown/datetime_search', locals: {container_class: 'archived-on-filter', label: t("filters_modal.archived_on.label"), view_mode: 'archived' } %>
|
|
|
|
<div class="select-block folders">
|
|
|
|
<span class="sci-checkbox-container">
|
|
|
|
<%= check_box_tag :folder_search, 'accepted', false, {class: "sci-checkbox"} %>
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</span>
|
|
|
|
<span class="folder-search-label"><%= t("projects.index.filters_modal.folders.label") %></span>
|
|
|
|
<div class="dropdown folder-search-info">
|
|
|
|
<a class="fas fa-info-circle" id="folderSearchInfoBtn" data-toggle="dropdown"></a>
|
|
|
|
<div id="folderSearchInfo" class="dropdown-menu folder-search-popover" aria-labelledby="folderSearchInfo">
|
|
|
|
<%= t("projects.index.filters_modal.folders.popover_html") %>
|
|
|
|
</div>
|
2021-01-25 22:36:23 +08:00
|
|
|
</div>
|
2021-02-02 18:17:29 +08:00
|
|
|
<% end %>
|
|
|
|
<div class="dropdown sort-menu">
|
|
|
|
<button class="btn btn-light dropdown-toggle" type="button" id="sortMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
|
|
<span><i class="fas fa-sort-amount-down"></i></span>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul id="sortMenuDropdown" class="dropdown-menu sort-projects-menu dropdown-menu-right" aria-labelledby="sortMenu">
|
|
|
|
<% %w(new old atoz ztoa archived_new archived_old).each_with_index do |sort, i| %>
|
|
|
|
<% if i.even? && i.positive? %>
|
|
|
|
<li class="divider" <%= i > 3 ? 'data-view-mode=archived' : '' %>></li>
|
|
|
|
<% end %>
|
|
|
|
<li <%= %w(archived_new archived_old).include?(sort) ? 'data-view-mode=archived' : '' %>>
|
|
|
|
<a class="<%= 'selected' if @current_sort == sort %>"
|
|
|
|
data-sort="<%= sort %>" >
|
|
|
|
<%= t("general.sort.#{sort}_html") %>
|
|
|
|
</a>
|
|
|
|
</li>
|
2021-01-25 22:36:23 +08:00
|
|
|
<% end %>
|
2021-02-02 18:17:29 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2021-01-25 22:36:23 +08:00
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-25 22:36:23 +08:00
|
|
|
<div id="toolbarWrapper" class="toolbar-row">
|
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|