2016-11-04 06:24:59 -04:00
|
|
|
%li.card{ ":class" => '{ "user-can-drag": !disabled && issue.id, "is-disabled": disabled || !issue.id, "is-active": issueDetailVisible }',
|
|
|
|
":index" => "index",
|
2016-11-24 05:38:24 -05:00
|
|
|
":data-issue-id" => "issue.id",
|
2016-11-04 06:24:59 -04:00
|
|
|
"@mousedown" => "mouseDown",
|
2016-11-23 09:00:06 -05:00
|
|
|
"@mousemove" => "mouseMove",
|
2016-11-04 06:24:59 -04:00
|
|
|
"@mouseup" => "showIssue($event)" }
|
|
|
|
%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{ "v-if" => "issue.id" }
|
|
|
|
= precede '#' do
|
|
|
|
{{ issue.id }}
|
|
|
|
%a.has-tooltip{ ":href" => "\"#{root_path}\" + issue.assignee.username",
|
|
|
|
":title" => '"Assigned to " + issue.assignee.name',
|
|
|
|
"v-if" => "issue.assignee",
|
|
|
|
data: { container: 'body' } }
|
2016-12-22 04:30:56 -05:00
|
|
|
%img.avatar.avatar-inline.s20{ ":src" => "issue.assignee.avatar", width: 20, height: 20, alt: "Avatar" }
|
2016-11-04 06:24:59 -04:00
|
|
|
%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 }}
|