2015-05-27 17:17:00 +02:00
|
|
|
template(name="minicard")
|
2018-03-20 15:56:16 -03:00
|
|
|
.minicard(
|
2018-05-02 15:03:22 -03:00
|
|
|
class="{{#if isLinkedCard}}linked-card{{/if}}"
|
|
|
|
|
class="{{#if isLinkedBoard}}linked-board{{/if}}")
|
2015-06-07 18:55:26 +02:00
|
|
|
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
|
2018-06-26 13:22:51 +03:00
|
|
|
if $eq 'prefix-with-full-path' currentBoard.presentParentTask
|
|
|
|
|
.parent-prefix
|
|
|
|
|
| {{ parentString ' > ' }}
|
|
|
|
|
if $eq 'prefix-with-parent' currentBoard.presentParentTask
|
|
|
|
|
.parent-prefix
|
|
|
|
|
| {{ parentCardName }}
|
2018-05-02 15:03:22 -03:00
|
|
|
if isLinkedBoard
|
|
|
|
|
a.js-linked-link
|
|
|
|
|
span.linked-icon.fa.fa-folder
|
|
|
|
|
else if isLinkedCard
|
|
|
|
|
a.js-linked-link
|
|
|
|
|
span.linked-icon.fa.fa-id-card
|
2018-04-20 23:52:13 -03:00
|
|
|
if getArchived
|
2018-05-02 15:03:22 -03:00
|
|
|
span.linked-icon.linked-archived.fa.fa-archive
|
2017-11-14 20:41:05 -06:00
|
|
|
+viewer
|
2018-04-18 02:30:24 -03:00
|
|
|
= getTitle
|
2018-06-26 13:22:51 +03:00
|
|
|
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
|
|
|
|
|
.parent-subtext
|
|
|
|
|
| {{ parentString ' > ' }}
|
|
|
|
|
if $eq 'subtext-with-parent' currentBoard.presentParentTask
|
|
|
|
|
.parent-subtext
|
|
|
|
|
| {{ parentCardName }}
|
2018-06-26 02:13:31 +03:00
|
|
|
|
2017-02-11 23:01:50 +02:00
|
|
|
.dates
|
2018-04-17 23:17:44 -03:00
|
|
|
if getReceived
|
|
|
|
|
unless getStart
|
|
|
|
|
unless getDue
|
|
|
|
|
unless getEnd
|
2018-06-08 20:42:16 +00:00
|
|
|
.date
|
2018-06-14 16:11:41 +00:00
|
|
|
+minicardReceivedDate
|
2018-04-17 23:17:44 -03:00
|
|
|
if getStart
|
2017-11-20 22:26:31 +07:00
|
|
|
.date
|
|
|
|
|
+minicardStartDate
|
2018-04-17 23:17:44 -03:00
|
|
|
if getDue
|
2017-11-20 22:26:31 +07:00
|
|
|
.date
|
2018-04-17 23:17:44 -03:00
|
|
|
+minicardDueDate
|
|
|
|
|
if getSpentTime
|
2017-11-20 22:26:31 +07:00
|
|
|
.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-06-14 15:08:30 +02:00
|
|
|
+viewer
|
|
|
|
|
= trueValue
|
2018-05-20 11:40:32 +02:00
|
|
|
|
2018-04-17 01:55:57 -03:00
|
|
|
if getMembers
|
2018-05-20 12:17:25 +02:00
|
|
|
.minicard-members.js-minicard-members
|
2018-04-17 01:55:57 -03:00
|
|
|
each getMembers
|
2018-05-20 12:17:25 +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
|
2018-04-16 16:38:20 -03:00
|
|
|
if getDescription
|
|
|
|
|
.badge.badge-state-image-only(title=getDescription)
|
2015-06-07 18:55:26 +02:00
|
|
|
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}}
|