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}}"
|
2021-10-18 19:54:12 +02:00
|
|
|
class="{{#if colorClass}}minicard-{{colorClass}}{{/if}}")
|
2022-08-12 17:21:45 +00:00
|
|
|
if isTouchScreenOrShowDesktopDragHandles
|
2022-10-02 18:45:55 +03:00
|
|
|
a.fa.fa-navicon.minicard-details-menu-with-handle.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}")
|
2020-04-23 02:09:01 +02:00
|
|
|
.handle
|
|
|
|
|
.fa.fa-arrows
|
2022-10-02 18:45:55 +03:00
|
|
|
else
|
|
|
|
|
a.fa.fa-navicon.minicard-details-menu.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}")
|
2015-06-07 18:55:26 +02:00
|
|
|
if cover
|
2022-09-11 00:20:05 +08:00
|
|
|
.minicard-cover(style="background-image: url('{{cover.link 'original'}}?dummyReloadAfterSessionEstablished={{sess}}');")
|
2018-08-23 16:58:07 +03:00
|
|
|
if labels
|
2021-10-31 14:55:13 +01:00
|
|
|
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
|
2018-08-23 16:58:07 +03:00
|
|
|
each labels
|
2019-08-07 18:11:34 +03:00
|
|
|
unless hiddenMinicardLabelText
|
2021-10-23 23:36:50 +02:00
|
|
|
span.js-card-label.card-label(class="card-label-{{color}}" title=name)
|
2019-08-07 18:11:34 +03:00
|
|
|
+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
|
2021-08-02 21:44:37 +02:00
|
|
|
if currentBoard.allowsCardNumber
|
|
|
|
|
span.card-number
|
|
|
|
|
| ##{getCardNumber}
|
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
|
2019-10-29 19:05:44 +02:00
|
|
|
if getEnd
|
|
|
|
|
+minicardEndDate
|
2018-04-17 23:17:44 -03:00
|
|
|
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
|
2019-12-12 18:41:22 +02:00
|
|
|
if trueValue
|
|
|
|
|
.minicard-custom-field
|
|
|
|
|
if definition.showLabelOnMiniCard
|
|
|
|
|
.minicard-custom-field-item
|
|
|
|
|
+viewer
|
|
|
|
|
= definition.name
|
2018-11-05 21:46:57 +01:00
|
|
|
.minicard-custom-field-item
|
2020-05-25 16:02:37 +00:00
|
|
|
if $eq definition.type "currency"
|
|
|
|
|
+viewer
|
|
|
|
|
= formattedCurrencyCustomFieldValue(definition)
|
2021-01-19 16:08:16 +02:00
|
|
|
else if $eq definition.type "date"
|
|
|
|
|
.date
|
|
|
|
|
+minicardCustomFieldDate
|
2021-01-18 23:56:08 +02:00
|
|
|
else if $eq definition.type "checkbox"
|
2021-01-19 15:40:13 +02:00
|
|
|
.materialCheckBox(class="{{#if value }}is-checked{{/if}}")
|
2021-04-07 16:11:19 +02:00
|
|
|
else if $eq definition.type "stringtemplate"
|
|
|
|
|
+viewer
|
|
|
|
|
= formattedStringtemplateCustomFieldValue(definition)
|
2020-05-25 16:02:37 +00:00
|
|
|
else
|
|
|
|
|
+viewer
|
|
|
|
|
= trueValue
|
2018-05-20 11:40:32 +02:00
|
|
|
|
2021-11-25 22:27:19 +01:00
|
|
|
if showAssignee
|
|
|
|
|
if getAssignees
|
|
|
|
|
.minicard-assignees.js-minicard-assignees
|
|
|
|
|
each getAssignees
|
|
|
|
|
+userAvatar(userId=this)
|
2019-11-07 06:04:23 +02:00
|
|
|
|
2021-11-25 22:27:19 +01:00
|
|
|
if showMembers
|
|
|
|
|
if getMembers
|
|
|
|
|
.minicard-members.js-minicard-members
|
|
|
|
|
each getMembers
|
|
|
|
|
+userAvatar(userId=this)
|
2018-05-20 12:17:25 +02:00
|
|
|
|
2021-04-01 23:40:07 +02:00
|
|
|
if showCreator
|
|
|
|
|
.minicard-creator
|
|
|
|
|
+userAvatar(userId=this.userId noRemove=true)
|
|
|
|
|
|
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
|
2022-04-05 17:00:39 -03:00
|
|
|
unless currentBoard.allowsDescriptionTextOnMinicard
|
|
|
|
|
.badge.badge-state-image-only(title=getDescription)
|
|
|
|
|
span.badge-icon.fa.fa-align-left
|
2020-04-07 20:43:35 +02:00
|
|
|
if getVoteQuestion
|
|
|
|
|
.badge.badge-state-image-only(title=getVoteQuestion)
|
2020-06-11 19:52:44 +02:00
|
|
|
span.badge-icon.fa.fa-thumbs-up(class="{{#if voteState}}text-green{{/if}}")
|
2020-05-03 00:33:15 +02:00
|
|
|
span.badge-text {{ voteCountPositive }}
|
2020-06-11 19:52:44 +02:00
|
|
|
span.badge-icon.fa.fa-thumbs-down(class="{{#if $eq voteState false}}text-red{{/if}}")
|
2020-05-03 00:33:15 +02:00
|
|
|
span.badge-text {{ voteCountNegative }}
|
2021-06-03 12:01:15 -03:00
|
|
|
if getPokerQuestion
|
|
|
|
|
.badge.badge-state-image-only(title=getPokerQuestion)
|
|
|
|
|
span.badge-icon.fa.fa-check(class="{{#if pokerState}}text-green{{/if}}")
|
|
|
|
|
if expiredPoker
|
|
|
|
|
span.badge-text {{ getPokerEstimation }}
|
2022-03-10 00:21:03 +01:00
|
|
|
if attachments.length
|
2015-06-07 18:55:26 +02:00
|
|
|
.badge
|
|
|
|
|
span.badge-icon.fa.fa-paperclip
|
2022-03-10 00:21:03 +01:00
|
|
|
span.badge-text= attachments.length
|
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}}
|
2021-04-27 18:28:23 -07:00
|
|
|
if allSubtasks.count
|
|
|
|
|
.badge
|
|
|
|
|
span.badge-icon.fa.fa-sitemap
|
|
|
|
|
span.badge-text.check-list-text {{subtasksFinishedCount}}/{{allSubtasksCount}}
|
|
|
|
|
//{{subtasksFinishedCount}}/{{subtasksCount}} does not work because when a subtaks is archived, the count goes down
|
2021-04-13 19:49:52 +02:00
|
|
|
if currentBoard.allowsCardSortingByNumber
|
|
|
|
|
.badge
|
|
|
|
|
span.badge-icon.fa.fa-sort
|
2021-10-12 14:55:59 +02:00
|
|
|
span.badge-text.check-list-sort {{ sort }}
|
2022-04-05 17:00:39 -03:00
|
|
|
if currentBoard.allowsDescriptionTextOnMinicard
|
|
|
|
|
if getDescription
|
|
|
|
|
.minicard-description
|
2022-04-06 07:25:34 -03:00
|
|
|
+viewer
|
|
|
|
|
| {{ getDescription }}
|
2021-10-12 14:53:08 +02:00
|
|
|
|
|
|
|
|
template(name="editCardSortOrderPopup")
|
|
|
|
|
input.js-edit-card-sort-popup(type='text' autofocus value=sort dir="auto")
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-edit-card-sort-popup(type="submit") {{_ 'save'}}
|
2022-10-02 18:45:55 +03:00
|
|
|
|
|
|
|
|
template(name="minicardDetailsActionsPopup")
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
if currentUser.isBoardAdmin
|
|
|
|
|
li
|
|
|
|
|
a.js-move-card
|
|
|
|
|
i.fa.fa-arrow-right
|
|
|
|
|
| {{_ 'moveCardPopup-title'}}
|
|
|
|
|
unless currentUser.isWorker
|
|
|
|
|
li
|
|
|
|
|
a.js-copy-card
|
|
|
|
|
i.fa.fa-copy
|
|
|
|
|
| {{_ 'copyCardPopup-title'}}
|
|
|
|
|
hr
|
2023-02-26 01:35:42 +02:00
|
|
|
li
|
|
|
|
|
a.js-archive
|
|
|
|
|
i.fa.fa-arrow-right
|
|
|
|
|
i.fa.fa-archive
|
|
|
|
|
| {{_ 'archive-card'}}
|
|
|
|
|
hr
|
2022-10-02 18:45:55 +03:00
|
|
|
li
|
|
|
|
|
a.js-move-card-to-top
|
|
|
|
|
i.fa.fa-arrow-up
|
|
|
|
|
| {{_ 'moveCardToTop-title'}}
|
|
|
|
|
li
|
|
|
|
|
a.js-move-card-to-bottom
|
|
|
|
|
i.fa.fa-arrow-down
|
|
|
|
|
| {{_ 'moveCardToBottom-title'}}
|
|
|
|
|
hr
|
|
|
|
|
li
|
|
|
|
|
a.js-add-labels
|
|
|
|
|
i.fa.fa-tags
|
|
|
|
|
| {{_ 'card-edit-labels'}}
|
|
|
|
|
li
|
|
|
|
|
a.js-due-date
|
|
|
|
|
i.fa.fa-sign-in
|
|
|
|
|
| {{_ 'editCardDueDatePopup-title'}}
|
|
|
|
|
li
|
|
|
|
|
a.js-set-card-color
|
|
|
|
|
i.fa.fa-paint-brush
|
|
|
|
|
| {{_ 'setCardColorPopup-title'}}
|
|
|
|
|
li
|
|
|
|
|
a.js-link
|
|
|
|
|
i.fa.fa-link
|
|
|
|
|
| {{_ 'link-card'}}
|