BigW Consortium Gitlab

_label_dropdown.html.haml 966 Bytes
Newer Older
1
- if params[:label_name].present?
2 3 4
  - if params[:label_name].respond_to?('any?')
    - params[:label_name].each do |label|
      = hidden_field_tag "label_name[]", label, id: nil
5
.dropdown
6
  %button.dropdown-menu-toggle.js-label-select.js-filter-submit.js-multiselect.js-extra-options{type: "button", data: {toggle: "dropdown", field_name: "label_name[]", show_no: "true", show_any: "true", selected: params[:label_name], project_id: @project.try(:id), labels: labels_filter_path, default_label: "Label"}}
7
    %span.dropdown-toggle-text
8
      = h(multi_label_name(params[:label_name], "Label"))
9 10
    = icon('chevron-down')
  .dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
11
    = render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label" }
12
    - if can? current_user, :admin_label, @project and @project
13
      = render partial: "shared/issuable/label_page_create"
14
    = dropdown_loading