2021-01-07 22:36:10 +02:00
|
|
|
template(name="dueCardsHeaderBar")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
h1
|
2025-10-17 07:08:01 +03:00
|
|
|
| 📅
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCards-title'}}
|
2021-01-07 22:36:10 +02:00
|
|
|
|
2021-01-16 04:59:17 +02:00
|
|
|
.board-header-btns.left
|
|
|
|
|
a.board-header-btn.js-due-cards-view-change(title="{{_ 'dueCardsViewChange-title'}}")
|
2025-10-17 07:08:01 +03:00
|
|
|
| ▼
|
2021-01-16 04:59:17 +02:00
|
|
|
if $eq dueCardsView 'me'
|
2025-10-17 07:08:01 +03:00
|
|
|
| 👤
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCardsViewChange-choice-me'}}
|
|
|
|
|
if $eq dueCardsView 'all'
|
2025-10-17 07:08:01 +03:00
|
|
|
| 👥
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCardsViewChange-choice-all'}}
|
2021-01-07 22:36:10 +02:00
|
|
|
|
|
|
|
|
template(name="dueCardsModalTitle")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
h2
|
2025-10-17 07:08:01 +03:00
|
|
|
| ⌨️
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCards-title'}}
|
2021-01-07 22:36:10 +02:00
|
|
|
|
|
|
|
|
template(name="dueCards")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
2021-03-01 01:49:56 +02:00
|
|
|
if searching.get
|
2021-01-16 04:59:17 +02:00
|
|
|
+spinner
|
2021-03-01 01:49:56 +02:00
|
|
|
else if hasResults.get
|
|
|
|
|
.global-search-results-list-wrapper
|
|
|
|
|
if hasQueryErrors.get
|
|
|
|
|
div
|
|
|
|
|
each msg in errorMessages
|
|
|
|
|
span.global-search-error-messages
|
|
|
|
|
= msg
|
|
|
|
|
else
|
2025-10-22 23:31:36 +03:00
|
|
|
.due-cards-results-header
|
|
|
|
|
h1
|
|
|
|
|
= resultsText
|
2025-10-21 14:57:57 +03:00
|
|
|
each card in dueCardsList
|
|
|
|
|
+resultCard(card)
|
2025-10-22 23:31:36 +03:00
|
|
|
else
|
|
|
|
|
.global-search-results-list-wrapper
|
|
|
|
|
.no-results
|
|
|
|
|
h3 {{_ 'dueCards-noResults-title'}}
|
|
|
|
|
p {{_ 'dueCards-noResults-description'}}
|
2021-01-07 22:36:10 +02:00
|
|
|
|
|
|
|
|
template(name="dueCardsViewChangePopup")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
|
|
|
|
with "dueCardsViewChange-choice-me"
|
|
|
|
|
a.js-due-cards-view-me
|
2025-10-17 07:08:01 +03:00
|
|
|
| 👤
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCardsViewChange-choice-me'}}
|
|
|
|
|
if $eq Utils.dueCardsView "me"
|
2025-10-17 07:08:01 +03:00
|
|
|
| ✅
|
2021-01-16 04:59:17 +02:00
|
|
|
hr
|
|
|
|
|
li
|
|
|
|
|
with "dueCardsViewChange-choice-all"
|
|
|
|
|
a.js-due-cards-view-all
|
2025-10-17 07:08:01 +03:00
|
|
|
| 👥
|
2021-01-16 04:59:17 +02:00
|
|
|
| {{_ 'dueCardsViewChange-choice-all'}}
|
|
|
|
|
span.sub-name
|
|
|
|
|
+viewer
|
|
|
|
|
| {{_ 'dueCardsViewChange-choice-all-description' }}
|
|
|
|
|
if $eq Utils.dueCardsView "all"
|
2025-10-17 07:08:01 +03:00
|
|
|
| ✅
|