|
@@ -17,47 +17,90 @@ template(name="boardList")
|
|
|
button.js-accept-invite.primary {{_ 'accept'}}
|
|
|
button.js-decline-invite {{_ 'decline'}}
|
|
|
else
|
|
|
- a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
|
|
|
- span.details
|
|
|
- span.board-list-item-name(title="{{_ 'board-drag-drop-reorder-or-click-open'}}")
|
|
|
- +viewer
|
|
|
- = title
|
|
|
- i.fa.js-star-board(
|
|
|
- class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
|
|
- title="{{_ 'star-board-title'}}")
|
|
|
- p.board-list-item-desc
|
|
|
- +viewer
|
|
|
- = description
|
|
|
- if hasSpentTimeCards
|
|
|
- i.fa.js-has-spenttime-cards(
|
|
|
- class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
|
|
- title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
|
|
- if isMiniScreen
|
|
|
- i.fa.board-handle(
|
|
|
- class="fa-arrows"
|
|
|
- title="{{_ 'Drag board'}}")
|
|
|
- unless isMiniScreen
|
|
|
- if isSandstorm
|
|
|
- i.fa.js-clone-board(
|
|
|
- class="fa-clone"
|
|
|
- title="{{_ 'duplicate-board'}}")
|
|
|
- i.fa.js-archive-board(
|
|
|
- class="fa-archive"
|
|
|
- title="{{_ 'archive-board'}}")
|
|
|
- else if isAdministrable
|
|
|
- i.fa.js-clone-board(
|
|
|
- class="fa-clone"
|
|
|
- title="{{_ 'duplicate-board'}}")
|
|
|
- i.fa.js-archive-board(
|
|
|
- class="fa-archive"
|
|
|
- title="{{_ 'archive-board'}}")
|
|
|
- else if currentUser.isAdmin
|
|
|
- i.fa.js-clone-board(
|
|
|
- class="fa-clone"
|
|
|
- title="{{_ 'duplicate-board'}}")
|
|
|
- i.fa.js-archive-board(
|
|
|
- class="fa-archive"
|
|
|
- title="{{_ 'archive-board'}}")
|
|
|
+ if $eq type "template-container"
|
|
|
+ a.js-open-board.template-container.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
|
|
|
+ span.details
|
|
|
+ span.board-list-item-name(title="{{_ 'template-container'}}")
|
|
|
+ +viewer
|
|
|
+ = title
|
|
|
+ i.fa.js-star-board(
|
|
|
+ class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
|
|
+ title="{{_ 'star-board-title'}}")
|
|
|
+ p.board-list-item-desc
|
|
|
+ +viewer
|
|
|
+ = description
|
|
|
+ if hasSpentTimeCards
|
|
|
+ i.fa.js-has-spenttime-cards(
|
|
|
+ class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
|
|
+ title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
|
|
+ if isMiniScreen
|
|
|
+ i.fa.board-handle(
|
|
|
+ class="fa-arrows"
|
|
|
+ title="{{_ 'Drag board'}}")
|
|
|
+ unless isMiniScreen
|
|
|
+ if isSandstorm
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
+ else if isAdministrable
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
+ else if currentUser.isAdmin
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
+ else
|
|
|
+ a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
|
|
|
+ span.details
|
|
|
+ span.board-list-item-name(title="{{_ 'board-drag-drop-reorder-or-click-open'}}")
|
|
|
+ +viewer
|
|
|
+ = title
|
|
|
+ i.fa.js-star-board(
|
|
|
+ class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
|
|
+ title="{{_ 'star-board-title'}}")
|
|
|
+ p.board-list-item-desc
|
|
|
+ +viewer
|
|
|
+ = description
|
|
|
+ if hasSpentTimeCards
|
|
|
+ i.fa.js-has-spenttime-cards(
|
|
|
+ class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
|
|
|
+ title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
|
|
|
+ if isMiniScreen
|
|
|
+ i.fa.board-handle(
|
|
|
+ class="fa-arrows"
|
|
|
+ title="{{_ 'Drag board'}}")
|
|
|
+ unless isMiniScreen
|
|
|
+ if isSandstorm
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
+ else if isAdministrable
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
+ else if currentUser.isAdmin
|
|
|
+ i.fa.js-clone-board(
|
|
|
+ class="fa-clone"
|
|
|
+ title="{{_ 'duplicate-board'}}")
|
|
|
+ i.fa.js-archive-board(
|
|
|
+ class="fa-archive"
|
|
|
+ title="{{_ 'archive-board'}}")
|
|
|
|
|
|
template(name="boardListHeaderBar")
|
|
|
h1 {{_ title }}
|