2017-08-17 22:00:37 +05:30
|
|
|
.block.labels
|
|
|
|
.title
|
|
|
|
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-03-17 18:26:18 +05:30
|
|
|
= link_to "Edit", "#", class: "js-sidebar-dropdown-toggle edit-link pull-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" }
|
|
|
|
None
|
|
|
|
%a{ href: "#",
|
|
|
|
"v-for" => "label in issue.labels" }
|
|
|
|
%span.label.color-label.has-tooltip{ ":style" => "{ backgroundColor: label.color, color: label.textColor }" }
|
|
|
|
{{ 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-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),
|
|
|
|
labels: labels_filter_path(false),
|
|
|
|
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
|
|
|
|
Label
|
|
|
|
= 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"
|