|  | @@ -16,8 +16,8 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |            class="{{#if canModifyCard}}js-open-inlined-form is-editable{{/if}}")
 | 
	
		
			
				|  |  |              +viewer
 | 
	
		
			
				|  |  |                = getTitle
 | 
	
		
			
				|  |  | -              if isWatching
 | 
	
		
			
				|  |  | -                i.fa.fa-eye.card-details-watch
 | 
	
		
			
				|  |  | +            if isWatching
 | 
	
		
			
				|  |  | +              i.card-details-watch.fa.fa-eye
 | 
	
		
			
				|  |  |          .card-details-path
 | 
	
		
			
				|  |  |            each parentList
 | 
	
		
			
				|  |  |              |   >  
 | 
	
	
		
			
				|  | @@ -37,7 +37,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      .card-details-items
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-received
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'card-received'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-sign-out
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'card-received'}}
 | 
	
		
			
				|  |  |          if getReceived
 | 
	
		
			
				|  |  |            +cardReceivedDate
 | 
	
		
			
				|  |  |          else
 | 
	
	
		
			
				|  | @@ -45,7 +47,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |              a.js-received-date {{_ 'add'}}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-start
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'card-start'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-hourglass-start
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'card-start'}}
 | 
	
		
			
				|  |  |          if getStart
 | 
	
		
			
				|  |  |            +cardStartDate
 | 
	
		
			
				|  |  |          else
 | 
	
	
		
			
				|  | @@ -53,7 +57,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |              a.js-start-date {{_ 'add'}}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-due
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'card-due'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-sign-in
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'card-due'}}
 | 
	
		
			
				|  |  |          if getDue
 | 
	
		
			
				|  |  |            +cardDueDate
 | 
	
		
			
				|  |  |          else
 | 
	
	
		
			
				|  | @@ -61,7 +67,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |              a.js-due-date {{_ 'add'}}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-end
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'card-end'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-hourglass-end
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'card-end'}}
 | 
	
		
			
				|  |  |          if getEnd
 | 
	
		
			
				|  |  |            +cardEndDate
 | 
	
		
			
				|  |  |          else
 | 
	
	
		
			
				|  | @@ -70,7 +78,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      .card-details-items
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-members
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'members'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-users
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'members'}}
 | 
	
		
			
				|  |  |          each getMembers
 | 
	
		
			
				|  |  |            +userAvatar(userId=this cardId=../_id)
 | 
	
		
			
				|  |  |            | {{! XXX Hack to hide syntaxic coloration /// }}
 | 
	
	
		
			
				|  | @@ -79,7 +89,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |              i.fa.fa-plus
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-assignees
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'assignee'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-user
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'assignee'}}
 | 
	
		
			
				|  |  |          each getAssignees
 | 
	
		
			
				|  |  |            +userAvatarAssignee(userId=this cardId=../_id)
 | 
	
		
			
				|  |  |            | {{! XXX Hack to hide syntaxic coloration /// }}
 | 
	
	
		
			
				|  | @@ -89,7 +101,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |                i.fa.fa-plus
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-labels
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'labels'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-tags
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'labels'}}
 | 
	
		
			
				|  |  |          a(class="{{#if canModifyCard}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
 | 
	
		
			
				|  |  |            each labels
 | 
	
		
			
				|  |  |              span.card-label(class="card-label-{{color}}" title=name)
 | 
	
	
		
			
				|  | @@ -118,7 +132,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      //- XXX We should use "editable" to avoid repetiting ourselves
 | 
	
		
			
				|  |  |      if canModifyCard
 | 
	
		
			
				|  |  | -      h3.card-details-item-title {{_ 'description'}}
 | 
	
		
			
				|  |  | +      h3
 | 
	
		
			
				|  |  | +        i.fa.fa-align-left
 | 
	
		
			
				|  |  | +        card-details-item-title {{_ 'description'}}
 | 
	
		
			
				|  |  |        +inlinedCardDescription(classNames="card-description js-card-description")
 | 
	
		
			
				|  |  |          +editor(autofocus=true)
 | 
	
		
			
				|  |  |            | {{getUnsavedValue 'cardDescription' _id getDescription}}
 | 
	
	
		
			
				|  | @@ -145,7 +161,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      .card-details-items
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-name
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'requested-by'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-shopping-cart
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'requested-by'}}
 | 
	
		
			
				|  |  |          if canModifyCard
 | 
	
		
			
				|  |  |            +inlinedForm(classNames="js-card-details-requester")
 | 
	
		
			
				|  |  |              +editCardRequesterForm
 | 
	
	
		
			
				|  | @@ -161,7 +179,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |              = getRequestedBy
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        .card-details-item.card-details-item-name
 | 
	
		
			
				|  |  | -        h3.card-details-item-title {{_ 'assigned-by'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-user-plus
 | 
	
		
			
				|  |  | +          card-details-item-title {{_ 'assigned-by'}}
 | 
	
		
			
				|  |  |          if canModifyCard
 | 
	
		
			
				|  |  |            +inlinedForm(classNames="js-card-details-assigner")
 | 
	
		
			
				|  |  |              +editCardAssignerForm
 | 
	
	
		
			
				|  | @@ -193,7 +213,9 @@ template(name="cardDetails")
 | 
	
		
			
				|  |  |      hr
 | 
	
		
			
				|  |  |      unless currentUser.isNoComments
 | 
	
		
			
				|  |  |        .activity-title
 | 
	
		
			
				|  |  | -        h3 {{ _ 'activity'}}
 | 
	
		
			
				|  |  | +        h3
 | 
	
		
			
				|  |  | +          i.fa.fa-history
 | 
	
		
			
				|  |  | +          | {{ _ 'activity'}}
 | 
	
		
			
				|  |  |          if currentUser.isBoardMember
 | 
	
		
			
				|  |  |            .material-toggle-switch
 | 
	
		
			
				|  |  |              span.toggle-switch-title {{_ 'hide-system-messages'}}
 | 
	
	
		
			
				|  | @@ -235,32 +257,77 @@ template(name="editCardAssignerForm")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  template(name="cardDetailsActionsPopup")
 | 
	
		
			
				|  |  |    ul.pop-over-list
 | 
	
		
			
				|  |  | -    li: a.js-toggle-watch-card {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
 | 
	
		
			
				|  |  | +    li
 | 
	
		
			
				|  |  | +      a.js-toggle-watch-card
 | 
	
		
			
				|  |  | +        if isWatching
 | 
	
		
			
				|  |  | +          i.fa.fa-eye
 | 
	
		
			
				|  |  | +          |  {{_ 'unwatch'}}
 | 
	
		
			
				|  |  | +        else
 | 
	
		
			
				|  |  | +          i.fa.fa-eye-slash
 | 
	
		
			
				|  |  | +          |  {{_ 'watch'}}
 | 
	
		
			
				|  |  |    if canModifyCard
 | 
	
		
			
				|  |  |      hr
 | 
	
		
			
				|  |  |      ul.pop-over-list
 | 
	
		
			
				|  |  |        //li: a.js-members {{_ 'card-edit-members'}}
 | 
	
		
			
				|  |  |        //li: a.js-labels {{_ 'card-edit-labels'}}
 | 
	
		
			
				|  |  |        //li: a.js-attachments {{_ 'card-edit-attachments'}}
 | 
	
		
			
				|  |  | -      li: a.js-custom-fields {{_ 'card-edit-custom-fields'}}
 | 
	
		
			
				|  |  | +      li
 | 
	
		
			
				|  |  | +        a.js-custom-fields
 | 
	
		
			
				|  |  | +          i.fa.fa-list-alt
 | 
	
		
			
				|  |  | +          | {{_ 'card-edit-custom-fields'}}
 | 
	
		
			
				|  |  |        //li: a.js-received-date {{_ 'editCardReceivedDatePopup-title'}}
 | 
	
		
			
				|  |  |        //li: a.js-start-date {{_ 'editCardStartDatePopup-title'}}
 | 
	
		
			
				|  |  |        //li: a.js-due-date {{_ 'editCardDueDatePopup-title'}}
 | 
	
		
			
				|  |  |        //li: a.js-end-date {{_ 'editCardEndDatePopup-title'}}
 | 
	
		
			
				|  |  | -      li: a.js-spent-time {{_ 'editCardSpentTimePopup-title'}}
 | 
	
		
			
				|  |  | -      li: a.js-set-card-color {{_ 'setCardColorPopup-title'}}
 | 
	
		
			
				|  |  | +      li
 | 
	
		
			
				|  |  | +        a.js-spent-time
 | 
	
		
			
				|  |  | +          i.fa.fa-clock-o
 | 
	
		
			
				|  |  | +          | {{_ 'editCardSpentTimePopup-title'}}
 | 
	
		
			
				|  |  | +      li
 | 
	
		
			
				|  |  | +        a.js-set-card-color
 | 
	
		
			
				|  |  | +          i.fa.fa-paint-brush
 | 
	
		
			
				|  |  | +          | {{_ 'setCardColorPopup-title'}}
 | 
	
		
			
				|  |  |      hr
 | 
	
		
			
				|  |  |      ul.pop-over-list
 | 
	
		
			
				|  |  | -      li: a.js-move-card-to-top {{_ 'moveCardToTop-title'}}
 | 
	
		
			
				|  |  | -      li: a.js-move-card-to-bottom {{_ 'moveCardToBottom-title'}}
 | 
	
		
			
				|  |  | +      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
 | 
	
		
			
				|  |  |      ul.pop-over-list
 | 
	
		
			
				|  |  | -      li: a.js-move-card {{_ 'moveCardPopup-title'}}
 | 
	
		
			
				|  |  | -      li: a.js-copy-card {{_ 'copyCardPopup-title'}}
 | 
	
		
			
				|  |  | -      li: a.js-copy-checklist-cards {{_ 'copyChecklistToManyCardsPopup-title'}}
 | 
	
		
			
				|  |  | +      li
 | 
	
		
			
				|  |  | +        a.js-move-card
 | 
	
		
			
				|  |  | +          i.fa.fa-arrow-right
 | 
	
		
			
				|  |  | +          | {{_ 'moveCardPopup-title'}}
 | 
	
		
			
				|  |  | +      li
 | 
	
		
			
				|  |  | +        a.js-copy-card
 | 
	
		
			
				|  |  | +          i.fa.fa-copy
 | 
	
		
			
				|  |  | +          | {{_ 'copyCardPopup-title'}}
 | 
	
		
			
				|  |  | +      hr
 | 
	
		
			
				|  |  | +      ul.pop-over-list
 | 
	
		
			
				|  |  | +        li
 | 
	
		
			
				|  |  | +          a.js-copy-checklist-cards
 | 
	
		
			
				|  |  | +            i.fa.fa-list
 | 
	
		
			
				|  |  | +            i.fa.fa-copy
 | 
	
		
			
				|  |  | +            | {{_ 'copyChecklistToManyCardsPopup-title'}}
 | 
	
		
			
				|  |  |        unless archived
 | 
	
		
			
				|  |  | -        li: a.js-archive {{_ 'archive-card'}}
 | 
	
		
			
				|  |  | -      li: a.js-more {{_ 'cardMorePopup-title'}}
 | 
	
		
			
				|  |  | +        hr
 | 
	
		
			
				|  |  | +        ul.pop-over-list
 | 
	
		
			
				|  |  | +          li
 | 
	
		
			
				|  |  | +            a.js-archive
 | 
	
		
			
				|  |  | +              i.fa.fa-arrow-right
 | 
	
		
			
				|  |  | +              i.fa.fa-archive
 | 
	
		
			
				|  |  | +              | {{_ 'archive-card'}}
 | 
	
		
			
				|  |  | +      hr
 | 
	
		
			
				|  |  | +      ul.pop-over-list
 | 
	
		
			
				|  |  | +        li
 | 
	
		
			
				|  |  | +          a.js-more
 | 
	
		
			
				|  |  | +            i.fa.fa-link
 | 
	
		
			
				|  |  | +            | {{_ 'cardMorePopup-title'}}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  template(name="moveCardPopup")
 | 
	
		
			
				|  |  |    +boardsAndLists
 | 
	
	
		
			
				|  | @@ -349,7 +416,7 @@ template(name="cardAssigneePopup")
 | 
	
		
			
				|  |  |          p.quiet @{{ user.username }}
 | 
	
		
			
				|  |  |      ul.pop-over-list
 | 
	
		
			
				|  |  |        if currentUser.isNotCommentOnly
 | 
	
		
			
				|  |  | -          li: a.js-remove-assignee {{_ 'remove-member-from-card'}}
 | 
	
		
			
				|  |  | +        li: a.js-remove-assignee {{_ 'remove-member-from-card'}}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        if $eq currentUser._id user._id
 | 
	
		
			
				|  |  |          with currentUser
 |