boardsList.jade 1.6 KB

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