2015-05-24 12:30:58 +02:00
|
|
|
template(name="cardDetails")
|
2015-06-12 13:59:39 +02:00
|
|
|
section.card-details.js-card-details.js-perfect-scrollbar: .card-details-canvas
|
2015-06-05 21:37:13 +02:00
|
|
|
.card-details-header
|
|
|
|
|
+inlinedForm(classNames="js-card-details-title")
|
2015-12-31 20:36:30 +05:30
|
|
|
+editCardTitleForm
|
2015-06-05 21:37:13 +02:00
|
|
|
else
|
2015-08-30 16:01:28 +02:00
|
|
|
a.fa.fa-times-thin.close-card-details.js-close-card-details
|
2015-08-28 12:15:29 +02:00
|
|
|
if currentUser.isBoardMember
|
2015-12-17 14:23:35 +08:00
|
|
|
a.fa.fa-navicon.card-details-menu.js-open-card-details-menu
|
2015-06-05 21:37:13 +02:00
|
|
|
h2.card-details-title.js-card-title(
|
|
|
|
|
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
|
|
|
|
= title
|
2016-01-05 23:26:02 +08:00
|
|
|
if isWatching
|
|
|
|
|
i.fa.fa-eye.card-details-watch
|
2015-06-05 21:37:13 +02:00
|
|
|
|
2015-09-01 14:38:07 +02:00
|
|
|
if archived
|
|
|
|
|
p.warning {{_ 'card-archived'}}
|
|
|
|
|
|
2015-06-05 21:37:13 +02:00
|
|
|
.card-details-items
|
|
|
|
|
.card-details-item.card-details-item-members
|
2015-06-11 12:35:08 +02:00
|
|
|
h3.card-details-item-title {{_ 'members'}}
|
2015-05-24 12:30:58 +02:00
|
|
|
each members
|
2015-08-30 20:01:05 +02:00
|
|
|
+userAvatar(userId=this cardId=../_id)
|
|
|
|
|
| {{! XXX Hack to hide syntaxic coloration /// }}
|
2015-09-06 03:42:43 +02:00
|
|
|
if currentUser.isBoardMember
|
|
|
|
|
a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
|
|
|
|
|
i.fa.fa-plus
|
2015-06-05 21:37:13 +02:00
|
|
|
|
|
|
|
|
.card-details-item.card-details-item-labels
|
2015-06-11 12:35:08 +02:00
|
|
|
h3.card-details-item-title {{_ 'labels'}}
|
2015-09-06 03:42:43 +02:00
|
|
|
a(class="{{#if currentUser.isBoardMember}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
|
2015-06-05 21:37:13 +02:00
|
|
|
each labels
|
|
|
|
|
span.card-label(class="card-label-{{color}}" title=name)= name
|
2015-09-06 03:42:43 +02:00
|
|
|
if currentUser.isBoardMember
|
|
|
|
|
a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
|
|
|
|
|
i.fa.fa-plus
|
2015-06-05 21:37:13 +02:00
|
|
|
|
2015-06-19 14:39:38 +02:00
|
|
|
//- XXX We should use "editable" to avoid repetiting ourselves
|
2015-05-24 12:30:58 +02:00
|
|
|
if currentUser.isBoardMember
|
2015-09-01 14:38:07 +02:00
|
|
|
h3.card-details-item-title {{_ 'description'}}
|
2015-08-31 15:09:53 +02:00
|
|
|
+inlinedCardDescription(classNames="card-description js-card-description")
|
2015-05-26 20:30:01 +02:00
|
|
|
+editor(autofocus=true)
|
2015-08-31 15:09:53 +02:00
|
|
|
| {{getUnsavedValue 'cardDescription' _id description}}
|
2015-06-05 21:37:13 +02:00
|
|
|
.edit-controls.clearfix
|
2015-08-31 15:09:53 +02:00
|
|
|
button.primary(type="submit") {{_ 'save'}}
|
2015-06-05 21:37:13 +02:00
|
|
|
a.fa.fa-times-thin.js-close-inlined-form
|
2015-05-24 12:30:58 +02:00
|
|
|
else
|
2015-06-05 21:37:13 +02:00
|
|
|
a.js-open-inlined-form
|
|
|
|
|
if description
|
|
|
|
|
+viewer
|
|
|
|
|
= description
|
|
|
|
|
else
|
|
|
|
|
| {{_ 'edit'}}
|
2015-08-31 15:09:53 +02:00
|
|
|
if (hasUnsavedValue 'cardDescription' _id)
|
|
|
|
|
p.quiet
|
2015-09-01 14:38:07 +02:00
|
|
|
| {{_ 'unsaved-description'}}
|
|
|
|
|
a.js-open-inlined-form {{_ 'view-it'}}
|
2015-08-31 15:09:53 +02:00
|
|
|
= ' - '
|
2015-09-01 14:38:07 +02:00
|
|
|
a.js-close-inlined-form {{_ 'discard'}}
|
2015-05-24 12:30:58 +02:00
|
|
|
else if description
|
2015-09-01 14:38:07 +02:00
|
|
|
h3.card-details-item-title {{_ 'description'}}
|
2015-05-24 12:30:58 +02:00
|
|
|
+viewer
|
|
|
|
|
= description
|
|
|
|
|
if attachments.count
|
2015-06-05 21:37:13 +02:00
|
|
|
hr
|
2015-06-13 15:04:55 +02:00
|
|
|
h2
|
|
|
|
|
i.fa.fa-paperclip
|
|
|
|
|
| {{_ 'attachments'}}
|
|
|
|
|
|
|
|
|
|
+attachmentsGalery
|
2015-06-12 13:59:39 +02:00
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
h2 {{ _ 'activity'}}
|
|
|
|
|
if currentUser.isBoardMember
|
|
|
|
|
+commentForm
|
|
|
|
|
if isLoaded.get
|
|
|
|
|
+activities(card=this mode="card")
|
2015-06-05 21:37:13 +02:00
|
|
|
|
2015-12-31 20:36:30 +05:30
|
|
|
template(name="editCardTitleForm")
|
|
|
|
|
textarea.js-edit-card-title(rows='1' autofocus)
|
|
|
|
|
= title
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-edit-card-title-form(type="submit") {{_ 'save'}}
|
|
|
|
|
a.fa.fa-times-thin.js-close-inlined-form
|
|
|
|
|
|
2015-06-05 21:37:13 +02:00
|
|
|
template(name="cardDetailsActionsPopup")
|
2016-01-05 23:26:02 +08:00
|
|
|
ul.pop-over-list
|
|
|
|
|
li: a.js-toggle-watch-card {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
|
|
|
|
|
hr
|
2015-08-28 12:15:29 +02:00
|
|
|
ul.pop-over-list
|
2015-09-01 14:38:07 +02:00
|
|
|
li: a.js-members {{_ 'card-edit-members'}}
|
|
|
|
|
li: a.js-labels {{_ 'card-edit-labels'}}
|
2015-09-01 21:40:32 +02:00
|
|
|
li: a.js-attachments {{_ 'card-edit-attachments'}}
|
2015-06-05 21:37:13 +02:00
|
|
|
hr
|
2016-03-19 10:40:23 +06:00
|
|
|
ul.pop-over-list
|
|
|
|
|
li: a.js-move-card-to-top {{_ 'moveCardToTop-title'}}
|
|
|
|
|
li: a.js-move-card-to-bottom {{_ 'moveCardToBottom-title'}}
|
|
|
|
|
hr
|
2015-06-05 21:37:13 +02:00
|
|
|
ul.pop-over-list
|
2015-09-01 14:38:07 +02:00
|
|
|
li: a.js-move-card {{_ 'moveCardPopup-title'}}
|
2015-06-12 13:59:39 +02:00
|
|
|
unless archived
|
2015-09-01 14:38:07 +02:00
|
|
|
li: a.js-archive {{_ 'archive-card'}}
|
|
|
|
|
li: a.js-more {{_ 'cardMorePopup-title'}}
|
Renaissance
_,,ad8888888888bba,_
,ad88888I888888888888888ba,
,88888888I88888888888888888888a,
,d888888888I8888888888888888888888b,
d88888PP"""" ""YY88888888888888888888b,
,d88"'__,,--------,,,,.;ZZZY8888888888888,
,8IIl'" ;;l"ZZZIII8888888888,
,I88l;' ;lZZZZZ888III8888888,
,II88Zl;. ;llZZZZZ888888I888888,
,II888Zl;. .;;;;;lllZZZ888888I8888b
,II8888Z;; `;;;;;''llZZ8888888I8888,
II88888Z;' .;lZZZ8888888I888b
II88888Z; _,aaa, .,aaaaa,__.l;llZZZ88888888I888
II88888IZZZZZZZZZ, .ZZZZZZZZZZZZZZ;llZZ88888888I888,
II88888IZZ<'(@@>Z| |ZZZ<'(@@>ZZZZ;;llZZ888888888I88I
,II88888; `""" ;| |ZZ; `""" ;;llZ8888888888I888
II888888l `;; .;llZZ8888888888I888,
,II888888Z; ;;; .;;llZZZ8888888888I888I
III888888Zl; .., `;; ,;;lllZZZ88888888888I888
II88888888Z;;...;(_ _) ,;;;llZZZZ88888888888I888,
II88888888Zl;;;;;' `--'Z;. .,;;;;llZZZZ88888888888I888b
]I888888888Z;;;;' ";llllll;..;;;lllZZZZ88888888888I8888,
II888888888Zl.;;"Y88bd888P";;,..;lllZZZZZ88888888888I8888I
II8888888888Zl;.; `"PPP";;;,..;lllZZZZZZZ88888888888I88888
II888888888888Zl;;. `;;;l;;;;lllZZZZZZZZW88888888888I88888
`II8888888888888Zl;. ,;;lllZZZZZZZZWMZ88888888888I88888
II8888888888888888ZbaalllZZZZZZZZZWWMZZZ8888888888I888888,
`II88888888888888888b"WWZZZZZWWWMMZZZZZZI888888888I888888b
`II88888888888888888;ZZMMMMMMZZZZZZZZllI888888888I8888888
`II8888888888888888 `;lZZZZZZZZZZZlllll888888888I8888888,
II8888888888888888, `;lllZZZZllllll;;.Y88888888I8888888b,
,II8888888888888888b .;;lllllll;;;.;..88888888I88888888b,
II888888888888888PZI;. .`;;;.;;;..; ...88888888I8888888888,
II888888888888PZ;;';;. ;. .;. .;. .. Y8888888I88888888888b,
,II888888888PZ;;' `8888888I8888888888888b,
II888888888' 888888I8888888888888888
,II888888888 ,888888I8888888888888888
,d88888888888 d888888I8888888888ZZZZZZ
,ad888888888888I 8888888I8888ZZZZZZZZZZZZ
888888888888888' 888888IZZZZZZZZZZZZZZZZZ
8888888888P'8P' Y888ZZZZZZZZZZZZZZZZZZZZ
888888888, " ,ZZZZZZZZZZZZZZZZZZZZZZZ
8888888888, ,ZZZZZZZZZZZZZZZZZZZZZZZZZZ
888888888888a, _ ,ZZZZZZZZZZZZZZZZZZZZ88888888
888888888888888ba,_d' ,ZZZZZZZZZZZZZZZZZ8888888888888
8888888888888888888888bbbaaa,,,______,ZZZZZZZZZZZZZZZ88888888888888888
88888888888888888888888888888888888ZZZZZZZZZZZZZZZ88888888888888888888
8888888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888
888888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888888888
8888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888888
88888888888888888888888888888ZZZZZZZZZZZZZZ888888888888888888888888888
8888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888 Normand 8
88888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888 Veilleux 8
8888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888888888888
2015-05-12 19:20:58 +02:00
|
|
|
|
|
|
|
|
template(name="moveCardPopup")
|
|
|
|
|
+boardLists
|
2015-06-05 21:37:13 +02:00
|
|
|
|
|
|
|
|
template(name="cardMembersPopup")
|
2015-09-05 01:31:25 +02:00
|
|
|
ul.pop-over-list.js-card-member-list
|
2015-12-08 16:03:31 +08:00
|
|
|
each board.activeMembers
|
2015-06-05 21:37:13 +02:00
|
|
|
li.item(class="{{#if isCardMember}}active{{/if}}")
|
|
|
|
|
a.name.js-select-member(href="#")
|
2015-06-08 11:47:06 +02:00
|
|
|
+userAvatar(userId=user._id)
|
2015-06-05 21:37:13 +02:00
|
|
|
span.full-name
|
2015-07-18 13:43:59 +03:00
|
|
|
= user.profile.fullname
|
2015-06-05 21:37:13 +02:00
|
|
|
| (<span class="username">{{ user.username }}</span>)
|
|
|
|
|
if isCardMember
|
|
|
|
|
i.fa.fa-check
|
|
|
|
|
|
2015-06-12 13:59:39 +02:00
|
|
|
template(name="cardMorePopup")
|
|
|
|
|
p.quiet
|
|
|
|
|
span.clearfix
|
|
|
|
|
span {{_ 'link-card'}}
|
|
|
|
|
= ' '
|
|
|
|
|
i.fa.colorful(class="{{#if board.isPublic}}fa-globe{{else}}fa-lock{{/if}}")
|
|
|
|
|
input.inline-input(type="text" readonly value="{{ rootUrl }}")
|
|
|
|
|
| {{_ 'added'}}
|
|
|
|
|
span.date(title=card.createdAt) {{ moment createdAt 'LLL' }}
|
|
|
|
|
a.js-delete(title="{{_ 'card-delete-notice'}}") {{_ 'delete'}}
|
|
|
|
|
|
2015-06-07 18:55:26 +02:00
|
|
|
template(name="cardDeletePopup")
|
|
|
|
|
p {{_ "card-delete-pop"}}
|
|
|
|
|
unless archived
|
|
|
|
|
p {{_ "card-delete-suggest-archive"}}
|
|
|
|
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|