2015-05-27 17:17:00 +02:00
|
|
|
template(name="boardList")
|
2015-08-23 11:09:48 +02:00
|
|
|
.wrapper
|
2020-04-19 12:45:04 +03:00
|
|
|
ul.board-list.clearfix.js-boards
|
2018-09-28 10:40:20 +03:00
|
|
|
li.js-add-board
|
2021-06-09 20:08:42 +03:00
|
|
|
a.board-list-item.label(title="{{_ 'add-board'}}")
|
|
|
|
| {{_ 'add-board'}}
|
2015-09-01 14:38:07 +02:00
|
|
|
each boards
|
2020-04-19 12:45:04 +03:00
|
|
|
li(class="{{#if isStarred}}starred{{/if}}" class=colorClass).js-board
|
2015-12-07 11:15:57 +08:00
|
|
|
if isInvited
|
|
|
|
.board-list-item
|
|
|
|
span.details
|
|
|
|
span.board-list-item-name= 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 {{_ 'just-invited'}}
|
|
|
|
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
|
2021-06-09 20:08:42 +03:00
|
|
|
span.board-list-item-name(title="{{_ 'board-drag-drop-reorder-or-click-open'}}")
|
2019-05-11 23:40:18 +03:00
|
|
|
+viewer
|
|
|
|
= title
|
2015-12-07 11:15:57 +08:00
|
|
|
i.fa.js-star-board(
|
|
|
|
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
|
|
|
title="{{_ 'star-board-title'}}")
|
2019-05-11 23:40:18 +03:00
|
|
|
p.board-list-item-desc
|
|
|
|
+viewer
|
|
|
|
= description
|
2017-11-20 23:24:27 +07:00
|
|
|
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}}")
|
2020-05-16 03:08:05 +03:00
|
|
|
if isMiniScreen
|
|
|
|
i.fa.board-handle(
|
|
|
|
class="fa-arrows"
|
|
|
|
title="{{_ 'Drag board'}}")
|
2019-08-08 20:11:53 +03:00
|
|
|
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'}}")
|
2020-04-13 15:46:29 +02:00
|
|
|
else if isAdministrable
|
2019-08-08 20:11:53 +03:00
|
|
|
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'}}")
|
2015-12-08 16:05:59 -05:00
|
|
|
|
|
|
|
template(name="boardListHeaderBar")
|
2020-04-12 00:56:35 +02:00
|
|
|
h1 {{_ title }}
|
2021-01-02 16:39:58 +02:00
|
|
|
//.board-header-btns.right
|
|
|
|
// a.board-header-btn.js-open-archived-board
|
|
|
|
// i.fa.fa-archive
|
|
|
|
// span {{_ 'archives'}}
|
|
|
|
// a.board-header-btn(href="{{pathFor 'board' id=templatesBoardId slug=templatesBoardSlug}}")
|
|
|
|
// i.fa.fa-clone
|
|
|
|
// span {{_ 'templates'}}
|