boardsList.jade 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. template(name="boardList")
  2. .wrapper
  3. ul.board-list.clearfix
  4. each boards
  5. li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
  6. if isInvited
  7. .board-list-item
  8. span.details
  9. span.board-list-item-name= title
  10. i.fa.js-star-board(
  11. class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
  12. title="{{_ 'star-board-title'}}")
  13. p.board-list-item-desc {{_ 'just-invited'}}
  14. button.js-accept-invite.primary {{_ 'accept'}}
  15. button.js-decline-invite {{_ 'decline'}}
  16. else
  17. a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
  18. span.details
  19. span.board-list-item-name= title
  20. i.fa.js-star-board(
  21. class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
  22. title="{{_ 'star-board-title'}}")
  23. if hasSpentTimeCards
  24. i.fa.js-has-spenttime-cards(
  25. class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
  26. title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
  27. p.board-list-item-desc= description
  28. li.js-add-board
  29. a.board-list-item.label {{_ 'add-board'}}
  30. template(name="boardListHeaderBar")
  31. h1 {{_ 'my-boards'}}
  32. .board-header-btns.right
  33. a.board-header-btn.js-open-archived-board
  34. i.fa.fa-archive
  35. span {{_ 'archives'}}