summaryrefslogtreecommitdiff
path: root/app/views/projects/boards/components/sidebar/_labels.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/boards/components/sidebar/_labels.html.haml')
-rw-r--r--app/views/projects/boards/components/sidebar/_labels.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/projects/boards/components/sidebar/_labels.html.haml b/app/views/projects/boards/components/sidebar/_labels.html.haml
new file mode 100644
index 00000000000..b135b134a96
--- /dev/null
+++ b/app/views/projects/boards/components/sidebar/_labels.html.haml
@@ -0,0 +1,18 @@
+.block.labels
+ .title.hide-collapsed
+ Labels
+ = icon("spinner spin", class: "block-loading")
+ - if can?(current_user, :admin_issue, @project)
+ = link_to "Edit", "#", class: "edit-link pull-right"
+ .value.issuable-show-labels.hide-collapsed
+ %span.no-value{ "v-if" => "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 }}
+ .selectbox.hide-collapsed
+ %input{ type: "hidden",
+ name: "issue[label_names][]",
+ "v-for" => "label in issue.labels",
+ ":value" => "label.id" }