mirror of
https://github.com/wekan/wekan.git
synced 2026-03-01 19:30:15 +01:00
Update Global Search, Due Cards, and My Cards to use the same
code for searching and display
This commit is contained in:
parent
8181074238
commit
a1bda1169e
7 changed files with 266 additions and 637 deletions
|
|
@ -24,14 +24,16 @@ template(name="myCardsModalTitle")
|
|||
|
||||
template(name="myCards")
|
||||
if currentUser
|
||||
if isPageReady.get
|
||||
if searching.get
|
||||
+spinner
|
||||
else
|
||||
.wrapper
|
||||
if $eq myCardsSort 'board'
|
||||
each board in myCardsList
|
||||
.my-cards-board-wrapper
|
||||
.my-cards-board-title(class=board.colorClass, id="header")
|
||||
a(href=board.absoluteUrl)
|
||||
+viewer
|
||||
+viewer
|
||||
= board.title
|
||||
each swimlane in board.mySwimlanes
|
||||
.my-cards-swimlane-title(class="{{#if swimlane.colorClass}}{{ swimlane.colorClass }}{{else}}swimlane-default-color{{/if}}")
|
||||
|
|
@ -50,8 +52,6 @@ template(name="myCards")
|
|||
.my-cards-dueat-list-wrapper
|
||||
each card in myDueCardsList
|
||||
+resultCard(card)
|
||||
else
|
||||
+spinner
|
||||
|
||||
template(name="myCardsSortChangePopup")
|
||||
if currentUser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue