2017-08-17 22:00:37 +05:30
|
|
|
.block.labels
|
2020-10-24 23:57:45 +05:30
|
|
|
.title.gl-h-5.gl-display-flex.gl-align-items-center
|
2018-11-08 19:23:39 +05:30
|
|
|
= _("Labels")
|
2018-03-17 18:26:18 +05:30
|
|
|
- if can_admin_issue?
|
2020-10-24 23:57:45 +05:30
|
|
|
= loading_icon(css_class: 'gl-ml-2 block-loading')
|
|
|
|
= link_to _("Edit"), "#", class: "js-sidebar-dropdown-toggle edit-link gl-ml-auto"
|
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")
|
2019-07-31 22:56:46 +05:30
|
|
|
%span{ "v-for" => "label in issue.labels" }
|
2020-04-08 14:13:33 +05:30
|
|
|
%gl-label{ ":key" => "label.id",
|
|
|
|
":background-color" => "label.color",
|
|
|
|
":title" => "label.title",
|
|
|
|
":description" => "label.description",
|
2020-05-24 23:13:21 +05:30
|
|
|
":scoped" => "showScopedLabels(label)" }
|
2019-07-31 22:56:46 +05:30
|
|
|
|
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')
|
2019-09-04 21:01:54 +05:30
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable.dropdown-extended-height
|
2017-08-17 22:00:37 +05:30
|
|
|
= 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 }
|