14 lines
966 B
Text
14 lines
966 B
Text
- if params[:label_name].present?
|
|
- if params[:label_name].respond_to?('any?')
|
|
- params[:label_name].each do |label|
|
|
= hidden_field_tag "label_name[]", label, id: nil
|
|
.dropdown
|
|
%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"}}
|
|
%span.dropdown-toggle-text
|
|
= h(multi_label_name(params[:label_name], "Label"))
|
|
= icon('chevron-down')
|
|
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
|
|
= render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label" }
|
|
- if can? current_user, :admin_label, @project and @project
|
|
= render partial: "shared/issuable/label_page_create"
|
|
= dropdown_loading
|