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",
|
2018-03-17 18:26:18 +05:30
|
|
|
data: { toggle: "dropdown",
|
|
|
|
field_name: "issue[label_names][]",
|
|
|
|
show_no: "true",
|
|
|
|
show_any: "true",
|
|
|
|
project_id: @project&.try(:id),
|
|
|
|
namespace_path: @namespace_path,
|
2018-05-09 12:01:36 +05:30
|
|
|
project_path: @project.try(:path) } }
|
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)
|
2017-08-17 22:00:37 +05:30
|
|
|
= render partial: "shared/issuable/label_page_create"
|