2016-12-16 06:52:54 -05:00
|
|
|
- type = local_assigns.fetch(:type)
|
2017-03-10 07:08:19 -05:00
|
|
|
- block_css_class = type != :boards_modal ? 'row-content-block second-block' : ''
|
2017-08-02 05:27:24 -04:00
|
|
|
- full_path = @project.present? ? @project.full_path : @group.full_path
|
2016-12-16 06:52:54 -05:00
|
|
|
|
2016-11-04 17:27:11 -04:00
|
|
|
.issues-filters
|
2017-03-10 07:08:19 -05:00
|
|
|
.issues-details-filters.filtered-search-block{ class: block_css_class, "v-pre" => type == :boards_modal }
|
2016-11-04 17:27:11 -04:00
|
|
|
= form_tag page_filter_path(without: [:assignee_id, :author_id, :milestone_title, :label_name, :search]), method: :get, class: 'filter-form js-filter-form' do
|
|
|
|
- if params[:search].present?
|
|
|
|
= hidden_field_tag :search, params[:search]
|
2017-05-15 18:12:43 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
.check-all-holder.hidden
|
|
|
|
= check_box_tag "check-all-issues", nil, false, class: "check-all-issues left"
|
2017-03-29 22:04:05 -04:00
|
|
|
.issues-other-filters.filtered-search-wrapper
|
|
|
|
.filtered-search-box
|
2017-04-13 12:16:41 -04:00
|
|
|
- if type != :boards_modal && type != :boards
|
2017-05-17 11:03:48 -04:00
|
|
|
= dropdown_tag(custom_icon('icon_history'),
|
2017-04-13 12:16:41 -04:00
|
|
|
options: { wrapper_class: "filtered-search-history-dropdown-wrapper",
|
|
|
|
toggle_class: "filtered-search-history-dropdown-toggle-button",
|
|
|
|
dropdown_class: "filtered-search-history-dropdown",
|
|
|
|
content_class: "filtered-search-history-dropdown-content",
|
|
|
|
title: "Recent searches" }) do
|
2017-08-02 05:27:24 -04:00
|
|
|
.js-filtered-search-history-dropdown{ data: { full_path: full_path } }
|
2017-06-07 06:18:35 -04:00
|
|
|
.filtered-search-box-input-container.droplab-dropdown
|
2017-03-29 22:04:05 -04:00
|
|
|
.scroll-container
|
|
|
|
%ul.tokens-container.list-unstyled
|
|
|
|
%li.input-token
|
2017-06-15 10:01:12 -04:00
|
|
|
%input.form-control.filtered-search{ search_filter_input_options(type) }
|
2017-03-29 22:04:05 -04:00
|
|
|
= icon('filter')
|
|
|
|
#js-dropdown-hint.filtered-search-input-dropdown-menu.dropdown-menu.hint-dropdown
|
|
|
|
%ul{ data: { dropdown: true } }
|
|
|
|
%li.filter-dropdown-item{ data: { action: 'submit' } }
|
|
|
|
%button.btn.btn-link
|
|
|
|
= icon('search')
|
2016-12-05 13:35:28 -05:00
|
|
|
%span
|
2017-03-29 22:04:05 -04:00
|
|
|
Press Enter or click to search
|
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
|
|
|
%li.filter-dropdown-item
|
|
|
|
%button.btn.btn-link
|
|
|
|
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
|
|
|
|
-# haml lint's ClassAttributeWithStaticValue
|
|
|
|
%i.fa{ class: "#{'{{icon}}'}" }
|
|
|
|
%span.js-filter-hint
|
|
|
|
{{hint}}
|
|
|
|
%span.js-filter-tag.dropdown-light-content
|
|
|
|
{{tag}}
|
2017-05-18 16:30:16 -04:00
|
|
|
#js-dropdown-author.filtered-search-input-dropdown-menu.dropdown-menu
|
2017-06-02 03:42:18 -04:00
|
|
|
- if current_user
|
|
|
|
%ul{ data: { dropdown: true } }
|
|
|
|
= render 'shared/issuable/user_dropdown_item',
|
|
|
|
user: current_user
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
2017-06-02 03:42:18 -04:00
|
|
|
= render 'shared/issuable/user_dropdown_item',
|
|
|
|
user: User.new(username: '{{username}}', name: '{{name}}'),
|
|
|
|
avatar: { lazy: true, url: '{{avatar_url}}' }
|
2017-05-18 16:30:16 -04:00
|
|
|
#js-dropdown-assignee.filtered-search-input-dropdown-menu.dropdown-menu
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul{ data: { dropdown: true } }
|
|
|
|
%li.filter-dropdown-item{ data: { value: 'none' } }
|
|
|
|
%button.btn.btn-link
|
|
|
|
No Assignee
|
2017-08-18 19:08:15 -04:00
|
|
|
%li.divider.droplab-item-ignore
|
2017-06-02 03:42:18 -04:00
|
|
|
- if current_user
|
|
|
|
= render 'shared/issuable/user_dropdown_item',
|
|
|
|
user: current_user
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
2017-06-02 03:42:18 -04:00
|
|
|
= render 'shared/issuable/user_dropdown_item',
|
|
|
|
user: User.new(username: '{{username}}', name: '{{name}}'),
|
|
|
|
avatar: { lazy: true, url: '{{avatar_url}}' }
|
2017-05-18 16:30:16 -04:00
|
|
|
#js-dropdown-milestone.filtered-search-input-dropdown-menu.dropdown-menu
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul{ data: { dropdown: true } }
|
|
|
|
%li.filter-dropdown-item{ data: { value: 'none' } }
|
|
|
|
%button.btn.btn-link
|
|
|
|
No Milestone
|
|
|
|
%li.filter-dropdown-item{ data: { value: 'upcoming' } }
|
|
|
|
%button.btn.btn-link
|
|
|
|
Upcoming
|
|
|
|
%li.filter-dropdown-item{ 'data-value' => 'started' }
|
|
|
|
%button.btn.btn-link
|
|
|
|
Started
|
2017-08-18 19:08:15 -04:00
|
|
|
%li.divider.droplab-item-ignore
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
|
|
|
%li.filter-dropdown-item
|
|
|
|
%button.btn.btn-link.js-data-value
|
2016-12-05 17:05:30 -05:00
|
|
|
{{title}}
|
2017-05-18 16:30:16 -04:00
|
|
|
#js-dropdown-label.filtered-search-input-dropdown-menu.dropdown-menu
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul{ data: { dropdown: true } }
|
|
|
|
%li.filter-dropdown-item{ data: { value: 'none' } }
|
|
|
|
%button.btn.btn-link
|
|
|
|
No Label
|
2017-08-18 19:08:15 -04:00
|
|
|
%li.divider.droplab-item-ignore
|
2017-03-29 22:04:05 -04:00
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
|
|
|
%li.filter-dropdown-item
|
|
|
|
%button.btn.btn-link
|
|
|
|
%span.dropdown-label-box{ style: 'background: {{color}}' }
|
|
|
|
%span.label-title.js-data-value
|
|
|
|
{{title}}
|
2017-08-30 03:48:55 -04:00
|
|
|
#js-dropdown-my-reaction.filtered-search-input-dropdown-menu.dropdown-menu
|
|
|
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
|
|
|
%li.filter-dropdown-item
|
|
|
|
%button.btn.btn-link
|
|
|
|
%gl-emoji
|
|
|
|
%span.js-data-value.prepend-left-10
|
|
|
|
{{name}}
|
2017-05-30 06:45:33 -04:00
|
|
|
%button.clear-search.hidden{ type: 'button' }
|
|
|
|
= icon('times')
|
2017-03-07 04:24:01 -05:00
|
|
|
.filter-dropdown-container
|
|
|
|
- if type == :boards
|
|
|
|
- if can?(current_user, :admin_list, @project)
|
2017-03-08 07:17:01 -05:00
|
|
|
.dropdown.prepend-left-10#js-add-list
|
2017-07-17 03:51:00 -04:00
|
|
|
%button.btn.btn-create.btn-inverted.js-new-board-list{ type: "button", data: { toggle: "dropdown", labels: labels_filter_path, namespace_path: @project.try(:namespace).try(:full_path), project_path: @project.try(:path) } }
|
2017-03-07 04:24:01 -05:00
|
|
|
Add list
|
|
|
|
.dropdown-menu.dropdown-menu-paging.dropdown-menu-align-right.dropdown-menu-issues-board-new.dropdown-menu-selectable
|
|
|
|
= render partial: "shared/issuable/label_page_default", locals: { show_footer: true, show_create: true, show_boards_content: true, title: "Add list" }
|
|
|
|
- if can?(current_user, :admin_label, @project)
|
|
|
|
= render partial: "shared/issuable/label_page_create"
|
|
|
|
= dropdown_loading
|
|
|
|
#js-add-issues-btn.prepend-left-10
|
2017-03-10 07:08:19 -05:00
|
|
|
- elsif type != :boards_modal
|
2017-03-07 04:24:01 -05:00
|
|
|
= render 'shared/sort_dropdown'
|