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")
|
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",
|
|
|
|
":scoped" => "showScopedLabels(label)",
|
|
|
|
":scoped-labels-documentation-link" => "helpLink" }
|
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 }
|