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-05-24 12:30:58 +02:00
|
|
|
if cover
|
2015-06-05 21:37:13 +02:00
|
|
|
.card-details-cover(style="background-image: url({{ cover.url }})")
|
|
|
|
|
|
|
|
.card-details-header
|
|
|
|
+inlinedForm(classNames="js-card-details-title")
|
2015-06-11 12:35:08 +02:00
|
|
|
input.full-line(type="text" value=title autofocus)
|
2015-06-05 21:37:13 +02:00
|
|
|
.edit-controls.clearfix
|
|
|
|
button.primary.confirm(type="submit") {{_ 'save'}}
|
|
|
|
a.fa.fa-times-thin.js-close-inlined-form
|
|
|
|
else
|
|
|
|
a.fa.fa-angle-left.close-card-details.js-close-card-details
|
|
|
|
a.fa.fa-bars.card-details-menu.js-open-card-details-menu
|
|
|
|
h2.card-details-title.js-card-title(
|
|
|
|
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
|
|
|
|
= title
|
|
|
|
p.card-details-list
|
|
|
|
| {{_ 'in-list'}}
|
|
|
|
a.card-details-list-title(
|
|
|
|
class="{{#if currentUser.isBoardMember}}js-move-card is-editable{{/if}}")
|
|
|
|
= list.title
|
|
|
|
if currentUser.isBoardMember
|
|
|
|
i.fa.fa-chevron-down
|
|
|
|
|
|
|
|
.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-06-08 11:47:06 +02:00
|
|
|
+userAvatar(userId=this cardId=../_id)
|
2015-06-05 21:37:13 +02:00
|
|
|
a.member.add-member.card-details-item-add-button.js-add-members
|
2015-05-24 12:30:58 +02:00
|
|
|
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'}}
|
|
|
|
a.js-add-labels
|
2015-06-05 21:37:13 +02:00
|
|
|
each labels
|
|
|
|
span.card-label(class="card-label-{{color}}" title=name)= name
|
2015-06-11 12:35:08 +02:00
|
|
|
a.card-label.add-label.js-add-labels
|
|
|
|
i.fa.fa-plus
|
2015-06-05 21:37:13 +02:00
|
|
|
|
|
|
|
//- XXX We should use "editable" to avoide repetiting ourselves
|
2015-05-24 12:30:58 +02:00
|
|
|
if currentUser.isBoardMember
|
2015-06-11 12:35:08 +02:00
|
|
|
h3.card-details-item-title Description
|
2015-06-12 13:59:39 +02:00
|
|
|
+inlinedForm(classNames="card-description js-card-description")
|
2015-05-26 20:30:01 +02:00
|
|
|
+editor(autofocus=true)
|
|
|
|
= description
|
2015-06-05 21:37:13 +02:00
|
|
|
.edit-controls.clearfix
|
|
|
|
button.primary(type="submit") {{_ 'edit'}}
|
|
|
|
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-05-24 12:30:58 +02:00
|
|
|
else if description
|
2015-06-11 12:35:08 +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-05-24 12:30:58 +02:00
|
|
|
+WindowAttachmentsModule(card=this)
|
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
|
|
|
|
|
|
|
template(name="cardDetailsActionsPopup")
|
|
|
|
if currentUser.isBoardMember
|
|
|
|
ul.pop-over-list
|
|
|
|
li: a.js-members Edit Members…
|
|
|
|
li: a.js-labels Edit Labels…
|
|
|
|
li: a.js-attachments Edit Attachments…
|
|
|
|
hr
|
|
|
|
ul.pop-over-list
|
2015-06-07 18:55:26 +02:00
|
|
|
li: a.js-copy Copy Card
|
2015-06-12 13:59:39 +02:00
|
|
|
unless archived
|
|
|
|
li: a.js-archive Archive Card
|
|
|
|
li: a.js-more More
|
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-06-12 13:59:39 +02:00
|
|
|
ul.pop-over-list.pop-over-member-list
|
2015-06-05 21:37:13 +02:00
|
|
|
each board.members
|
|
|
|
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
|
|
|
|
= user.profile.name
|
|
|
|
| (<span class="username">{{ user.username }}</span>)
|
|
|
|
if isCardMember
|
|
|
|
i.fa.fa-check
|
|
|
|
|
|
|
|
template(name="cardLabelsPopup")
|
|
|
|
ul.edit-labels-pop-over
|
|
|
|
each board.labels
|
|
|
|
li
|
|
|
|
a.card-label-edit-button.fa.fa-pencil.js-edit-label
|
|
|
|
span.card-label.card-label-selectable.js-select-label(class="card-label-{{color}}"
|
|
|
|
class="{{# if isLabelSelected ../_id }}active{{/ if }}")
|
|
|
|
= name
|
|
|
|
if currentUser.isBoardAdmin
|
|
|
|
span.card-label-selectable-icon.fa.fa-check
|
|
|
|
a.quiet-button.full.js-add-label {{_ 'label-create'}}
|
2015-06-07 18:55:26 +02:00
|
|
|
|
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'}}
|