2015-05-27 17:17:00 +02:00
|
|
|
template(name="minicard")
|
2015-06-07 18:55:26 +02:00
|
|
|
.minicard
|
|
|
|
|
if cover
|
2016-04-25 21:44:33 +02:00
|
|
|
.minicard-cover(style="background-image: url('{{pathFor cover.url}}');")
|
2015-06-07 18:55:26 +02:00
|
|
|
if labels
|
|
|
|
|
.minicard-labels
|
|
|
|
|
each labels
|
|
|
|
|
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
|
|
|
|
.minicard-title= title
|
|
|
|
|
if members
|
|
|
|
|
.minicard-members.js-minicard-members
|
|
|
|
|
each members
|
2015-06-08 11:47:06 +02:00
|
|
|
+userAvatar(userId=this)
|
2015-06-07 18:55:26 +02:00
|
|
|
.badges
|
|
|
|
|
if comments.count
|
|
|
|
|
.badge(title="{{_ 'card-comments-title' comments.count }}")
|
2017-01-20 21:05:48 +08:00
|
|
|
span.badge-icon.fa.fa-comment-o.badge-comment
|
2015-06-12 13:59:39 +02:00
|
|
|
span.badge-text= comments.count
|
2015-06-07 18:55:26 +02:00
|
|
|
if description
|
|
|
|
|
.badge.badge-state-image-only(title=description)
|
|
|
|
|
span.badge-icon.fa.fa-align-left
|
|
|
|
|
if attachments.count
|
|
|
|
|
.badge
|
|
|
|
|
span.badge-icon.fa.fa-paperclip
|
|
|
|
|
span.badge-text= attachments.count
|
2016-02-05 21:01:43 +01:00
|
|
|
if startAt
|
|
|
|
|
.badge
|
|
|
|
|
+minicardStartDate
|
|
|
|
|
if dueAt
|
|
|
|
|
.badge
|
|
|
|
|
+minicardDueDate
|
2017-01-20 21:05:48 +08:00
|
|
|
if checklists.count
|
|
|
|
|
.badge(class="{{#if checklistFinished}}is-finished{{/if}}")
|
|
|
|
|
span.badge-icon.fa.fa-check-square-o
|
|
|
|
|
span.badge-text.check-list-text {{checklistFinishedCount}}/{{checklistItemCount}}
|
|
|
|
|
|