dueCards.jade 2.1 KB

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