summaryrefslogtreecommitdiff
path: root/app/views/projects/boards/components/_card.html.haml
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-08-17 12:10:09 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-08-17 12:10:09 -0600
commitd8654744cd6c8fa4cbe4617c2428cd79d4bd5179 (patch)
tree159d92727944184792c939210b5b73aaf348336a /app/views/projects/boards/components/_card.html.haml
parent4a13aa9f34ab4114bc485e1ca8fa0db8daa0394b (diff)
parent46dc00631aeae34c1964888625c5ccd04da6b4c1 (diff)
downloadgitlab-ce-d8654744cd6c8fa4cbe4617c2428cd79d4bd5179.tar.gz
Merge branch 'master' into diff-line-comment-vuejs
Diffstat (limited to 'app/views/projects/boards/components/_card.html.haml')
-rw-r--r--app/views/projects/boards/components/_card.html.haml34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/projects/boards/components/_card.html.haml b/app/views/projects/boards/components/_card.html.haml
new file mode 100644
index 00000000000..b20c23f6b8e
--- /dev/null
+++ b/app/views/projects/boards/components/_card.html.haml
@@ -0,0 +1,34 @@
+%board-card{ "inline-template" => true,
+ "v-for" => "issue in issues | orderBy 'priority'",
+ "v-ref:issue" => true,
+ ":index" => "$index",
+ ":list" => "list",
+ ":issue" => "issue",
+ ":issue-link-base" => "issueLinkBase",
+ ":disabled" => "disabled",
+ "track-by" => "id" }
+ %li.card{ ":class" => "{ 'user-can-drag': !disabled }",
+ ":index" => "index" }
+ = icon("align-justify", class: "board-mobile-handle js-card-drag-handle", "v-if" => "!disabled")
+ %h4.card-title
+ = icon("eye-slash", class: "confidential-icon", "v-if" => "issue.confidential")
+ %a{ ":href" => "issueLinkBase + '/' + issue.id",
+ ":title" => "issue.title" }
+ {{ issue.title }}
+ .card-footer
+ %span.card-number
+ = precede '#' do
+ {{ issue.id }}
+ %button.label.color-label.has-tooltip{ "v-for" => "label in issue.labels",
+ type: "button",
+ "v-if" => "(!list.label || label.id !== list.label.id)",
+ "@click" => "filterByLabel(label, $event)",
+ ":style" => "{ backgroundColor: label.color, color: label.textColor }",
+ ":title" => "label.description",
+ data: { container: 'body' } }
+ {{ label.title }}
+ %a.has-tooltip{ ":href" => "'/u/' + issue.assignee.username",
+ ":title" => "'Assigned to ' + issue.assignee.name",
+ "v-if" => "issue.assignee",
+ data: { container: 'body' } }
+ %img.avatar.avatar-inline.s20{ ":src" => "issue.assignee.avatar", width: 20, height: 20 }