2015-05-27 17:17:00 +02:00
|
|
|
template(name="minicard")
|
2015-06-07 18:55:26 +02:00
|
|
|
.minicard
|
|
|
|
|
if cover
|
2017-06-27 11:37:16 +09:00
|
|
|
.minicard-cover(style="background-image: url('{{cover.url}}');")
|
2015-06-07 18:55:26 +02:00
|
|
|
if labels
|
|
|
|
|
.minicard-labels
|
|
|
|
|
each labels
|
|
|
|
|
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
2017-11-14 20:41:05 -06:00
|
|
|
.minicard-title
|
|
|
|
|
+viewer
|
|
|
|
|
= title
|
2017-02-11 23:01:50 +02:00
|
|
|
.dates
|
|
|
|
|
if startAt
|
2017-11-20 22:26:31 +07:00
|
|
|
.date
|
|
|
|
|
+minicardStartDate
|
2017-02-11 23:01:50 +02:00
|
|
|
if dueAt
|
2017-11-20 22:26:31 +07:00
|
|
|
.date
|
|
|
|
|
+minicardDueDate
|
|
|
|
|
if spentTime
|
|
|
|
|
.date
|
|
|
|
|
+cardSpentTime
|
|
|
|
|
|
2018-05-20 12:11:58 +02:00
|
|
|
.minicard-custom-fields
|
2018-05-20 11:40:32 +02:00
|
|
|
each customFieldsWD
|
|
|
|
|
if definition.showOnCard
|
2018-05-20 12:11:58 +02:00
|
|
|
.minicard-custom-field
|
2018-05-20 12:24:07 +02:00
|
|
|
.minicard-custom-field-item
|
2018-05-20 11:49:49 +02:00
|
|
|
= definition.name
|
2018-05-20 12:11:58 +02:00
|
|
|
.minicard-custom-field-item
|
2018-05-20 12:24:07 +02:00
|
|
|
= value
|
2018-05-20 11:40:32 +02:00
|
|
|
|
2018-05-20 12:17:25 +02:00
|
|
|
if members
|
|
|
|
|
.minicard-members.js-minicard-members
|
|
|
|
|
each members
|
|
|
|
|
+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
|
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}}
|