debian-mirror-gitlab/app/views/shared/boards/components/sidebar/_labels.html.haml

32 lines
1.5 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
.block.labels
.title
2018-11-08 19:23:39 +05:30
= _("Labels")
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2017-08-17 22:00:37 +05:30
= icon("spinner spin", class: "block-loading")
2018-11-08 19:23:39 +05:30
= link_to _("Edit"), "#", class: "js-sidebar-dropdown-toggle edit-link float-right"
2018-10-15 14:42:47 +05:30
.value.issuable-show-labels.dont-hide
2017-08-17 22:00:37 +05:30
%span.no-value{ "v-if" => "issue.labels && issue.labels.length === 0" }
2018-11-08 19:23:39 +05:30
= _("None")
2017-08-17 22:00:37 +05:30
%a{ href: "#",
"v-for" => "label in issue.labels" }
2018-11-08 19:23:39 +05:30
.badge.color-label.has-tooltip{ ":style" => "{ backgroundColor: label.color, color: label.textColor }" }
2017-08-17 22:00:37 +05:30
{{ label.title }}
2018-03-17 18:26:18 +05:30
- if can_admin_issue?
2017-08-17 22:00:37 +05:30
.selectbox
%input{ type: "hidden",
name: "issue[label_names][]",
"v-for" => "label in issue.labels",
":value" => "label.id" }
.dropdown
%button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button",
2018-12-13 13:39:08 +05:30
":data-selected" => "selectedLabels",
":data-labels" => "issue.assignableLabelsEndpoint",
2019-07-07 11:18:12 +05:30
data: label_dropdown_data(@project, namespace_path: @namespace_path, field_name: "issue[label_names][]") }
2017-08-17 22:00:37 +05:30
%span.dropdown-toggle-text
2018-11-18 11:00:15 +05:30
{{ labelDropdownTitle }}
2017-08-17 22:00:37 +05:30
= icon('chevron-down')
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
= render partial: "shared/issuable/label_page_default"
2018-03-17 18:26:18 +05:30
- if can?(current_user, :admin_label, current_board_parent)
2019-07-07 11:18:12 +05:30
= render partial: "shared/issuable/label_page_create", locals: { show_add_list: true }