dueCards.jade 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. template(name="dueCardsHeaderBar")
  2. if currentUser
  3. h1
  4. i.fa.fa-calendar
  5. | {{_ 'dueCards-title'}}
  6. .board-header-btns.left
  7. a.board-header-btn.js-due-cards-view-change(title="{{_ 'dueCardsViewChange-title'}}")
  8. i.fa.fa-caret-down
  9. if $eq dueCardsView 'me'
  10. i.fa.fa-user
  11. | {{_ 'dueCardsViewChange-choice-me'}}
  12. if $eq dueCardsView 'all'
  13. i.fa.fa-users
  14. | {{_ 'dueCardsViewChange-choice-all'}}
  15. template(name="dueCardsModalTitle")
  16. if currentUser
  17. h2
  18. i.fa.fa-keyboard-o
  19. | {{_ 'dueCards-title'}}
  20. template(name="dueCards")
  21. if currentUser
  22. if isPageReady.get
  23. .wrapper
  24. .due-cards-dueat-list-wrapper
  25. each card in dueCardsList
  26. .due-cards-card-wrapper
  27. a.minicard-wrapper.card-title(href=card.absoluteUrl)
  28. +minicard(card)
  29. ul.due-cards-context-list
  30. li.due-cards-context(title="{{_ 'board'}}")
  31. +viewer
  32. = card.getBoard.title
  33. li.due-cards-context.due-cards-context-separator
  34. = ' '
  35. | {{_ 'context-separator'}}
  36. = ' '
  37. li.due-cards-context(title="{{_ 'swimlane'}}")
  38. +viewer
  39. = card.getSwimlane.title
  40. li.due-cards-context
  41. = ' '
  42. | {{_ 'context-separator'}}
  43. = ' '
  44. li.due-cards-context(title="{{_ 'list'}}")
  45. +viewer
  46. = card.getList.title
  47. else
  48. +spinner
  49. template(name="dueCardsViewChangePopup")
  50. if currentUser
  51. ul.pop-over-list
  52. li
  53. with "dueCardsViewChange-choice-me"
  54. a.js-due-cards-view-me
  55. i.fa.fa-user.colorful
  56. | {{_ 'dueCardsViewChange-choice-me'}}
  57. if $eq Utils.dueCardsView "me"
  58. i.fa.fa-check
  59. hr
  60. li
  61. with "dueCardsViewChange-choice-all"
  62. a.js-due-cards-view-all
  63. i.fa.fa-users.colorful
  64. | {{_ 'dueCardsViewChange-choice-all'}}
  65. span.sub-name
  66. +viewer
  67. | {{_ 'dueCardsViewChange-choice-all-description' }}
  68. if $eq Utils.dueCardsView "all"
  69. i.fa.fa-check