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}}"
|
2018-07-24 18:18:40 +02:00
|
|
|
class="{{#if isLinkedBoard}}linked-board{{/if}}"
|
|
|
|
|
class="minicard-{{colorClass}}")
|
2019-09-13 03:45:55 +03:00
|
|
|
.handle
|
|
|
|
|
.fa.fa-arrows
|
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}}');")
|
2018-08-23 16:58:07 +03:00
|
|
|
if labels
|
|
|
|
|
.minicard-labels
|
|
|
|
|
each labels
|
2019-08-07 18:11:34 +03:00
|
|
|
unless hiddenMinicardLabelText
|
|
|
|
|
span.card-label(class="card-label-{{color}}" title=name)
|
|
|
|
|
+viewer
|
|
|
|
|
= name
|
|
|
|
|
if hiddenMinicardLabelText
|
|
|
|
|
.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-11-05 21:46:57 +01:00
|
|
|
if definition.showLabelOnMiniCard
|
|
|
|
|
.minicard-custom-field-item
|
2019-05-11 23:40:18 +03:00
|
|
|
+viewer
|
|
|
|
|
= 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
|
2018-09-04 20:09:36 +03:00
|
|
|
unless currentUser.isNoComments
|
|
|
|
|
if comments.count
|
|
|
|
|
.badge(title="{{_ 'card-comments-title' comments.count }}")
|
|
|
|
|
span.badge-icon.fa.fa-comment-o.badge-comment
|
2019-07-01 17:23:41 -04:00
|
|
|
= ' '
|
|
|
|
|
= comments.count
|
|
|
|
|
//span.badge-comment.badge-text
|
|
|
|
|
//| {{_ 'comment'}}
|
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}}
|