mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Use resultCard for displaying results in MyCards and DueCards
This commit is contained in:
parent
93a3fa9c75
commit
74f89ef80d
4 changed files with 2 additions and 119 deletions
|
|
@ -26,27 +26,7 @@ template(name="dueCards")
|
||||||
.wrapper
|
.wrapper
|
||||||
.due-cards-dueat-list-wrapper
|
.due-cards-dueat-list-wrapper
|
||||||
each card in dueCardsList
|
each card in dueCardsList
|
||||||
.due-cards-card-wrapper
|
+resultCard(card)
|
||||||
a.minicard-wrapper.card-title(href=card.absoluteUrl)
|
|
||||||
+minicard(card)
|
|
||||||
ul.due-cards-context-list
|
|
||||||
li.due-cards-context(title="{{_ 'board'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getBoard.title
|
|
||||||
li.due-cards-context.due-cards-context-separator
|
|
||||||
= ' '
|
|
||||||
| {{_ 'context-separator'}}
|
|
||||||
= ' '
|
|
||||||
li.due-cards-context(title="{{_ 'swimlane'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getSwimlane.title
|
|
||||||
li.due-cards-context
|
|
||||||
= ' '
|
|
||||||
| {{_ 'context-separator'}}
|
|
||||||
= ' '
|
|
||||||
li.due-cards-context(title="{{_ 'list'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getList.title
|
|
||||||
else
|
else
|
||||||
+spinner
|
+spinner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,69 +1,4 @@
|
||||||
.due-cards-board-wrapper
|
|
||||||
border-radius: 8px
|
|
||||||
//padding: 0.5rem
|
|
||||||
min-width: 400px
|
|
||||||
border-width: 8px
|
|
||||||
border-color: grey
|
|
||||||
border-style: solid
|
|
||||||
margin-bottom: 2rem
|
|
||||||
margin-right: auto
|
|
||||||
margin-left: auto
|
|
||||||
|
|
||||||
.due-cards-board-title
|
|
||||||
font-size: 1.4rem
|
|
||||||
font-weight: bold
|
|
||||||
padding: 0.5rem
|
|
||||||
background-color: grey
|
|
||||||
color: white
|
|
||||||
|
|
||||||
.due-cards-swimlane-title
|
|
||||||
font-size: 1.1rem
|
|
||||||
font-weight: bold
|
|
||||||
padding: 0.5rem
|
|
||||||
padding-bottom: 0.4rem
|
|
||||||
margin-top: 0
|
|
||||||
margin-bottom: 0.5rem
|
|
||||||
//border-top: black 1px solid
|
|
||||||
//border-bottom: black 1px solid
|
|
||||||
text-align: center
|
|
||||||
|
|
||||||
.swimlane-default-color
|
|
||||||
background-color: lightgrey
|
|
||||||
|
|
||||||
.due-cards-list-title
|
|
||||||
font-weight: bold
|
|
||||||
font-size: 1.1rem
|
|
||||||
//padding-bottom: 0
|
|
||||||
//margin-bottom: 0
|
|
||||||
text-align: center
|
|
||||||
margin-bottom: 0.7rem
|
|
||||||
|
|
||||||
.due-cards-list-wrapper
|
|
||||||
margin: 1rem
|
|
||||||
border-radius: 5px
|
|
||||||
padding: 1.5rem
|
|
||||||
padding-top: 0.75rem
|
|
||||||
display: inline-block
|
|
||||||
min-width: 250px
|
|
||||||
max-width: 350px
|
|
||||||
|
|
||||||
.due-cards-card-wrapper
|
|
||||||
margin-top: 0
|
|
||||||
margin-bottom: 10px
|
|
||||||
|
|
||||||
.due-cards-dueat-list-wrapper
|
.due-cards-dueat-list-wrapper
|
||||||
max-width: 500px
|
max-width: 500px
|
||||||
margin-right: auto
|
margin-right: auto
|
||||||
margin-left: auto
|
margin-left: auto
|
||||||
|
|
||||||
.due-cards-field-name
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.due-cards-context
|
|
||||||
display: inline-block
|
|
||||||
|
|
||||||
.due-cards-context-separator
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.due-cards-context-list
|
|
||||||
margin-bottom: 0.7rem
|
|
||||||
|
|
|
||||||
|
|
@ -48,27 +48,7 @@ template(name="myCards")
|
||||||
else
|
else
|
||||||
.my-cards-dueat-list-wrapper
|
.my-cards-dueat-list-wrapper
|
||||||
each card in myDueCardsList
|
each card in myDueCardsList
|
||||||
.my-cards-card-wrapper
|
+resultCard(card)
|
||||||
a.minicard-wrapper.card-title(href=card.absoluteUrl)
|
|
||||||
+minicard(card)
|
|
||||||
ul.my-cards-context-list
|
|
||||||
li.my-cards-context(title="{{_ 'board'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getBoard.title
|
|
||||||
li.my-cards-context.my-cards-context-separator
|
|
||||||
= ' '
|
|
||||||
| {{_ 'context-separator'}}
|
|
||||||
= ' '
|
|
||||||
li.my-cards-context(title="{{_ 'swimlane'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getSwimlane.title
|
|
||||||
li.my-cards-context
|
|
||||||
= ' '
|
|
||||||
| {{_ 'context-separator'}}
|
|
||||||
= ' '
|
|
||||||
li.my-cards-context(title="{{_ 'list'}}")
|
|
||||||
+viewer
|
|
||||||
= card.getList.title
|
|
||||||
else
|
else
|
||||||
+spinner
|
+spinner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,15 +55,3 @@
|
||||||
max-width: 500px
|
max-width: 500px
|
||||||
margin-right: auto
|
margin-right: auto
|
||||||
margin-left: auto
|
margin-left: auto
|
||||||
|
|
||||||
.my-cards-field-name
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.my-cards-context
|
|
||||||
display: inline-block
|
|
||||||
|
|
||||||
.my-cards-context-separator
|
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
.my-cards-context-list
|
|
||||||
margin-bottom: 0.7rem
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue