mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.8 KiB
65 lines
2.8 KiB
template(name="boardList")
|
|
.wrapper
|
|
ul.board-list.clearfix
|
|
li.js-add-board
|
|
a.board-list-item.label {{_ 'add-board'}}
|
|
each boards
|
|
li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
|
|
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
|
|
span.board-list-item-name
|
|
+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}}")
|
|
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 }}
|
|
.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'}}
|
|
|