mirror of https://github.com/wekan/wekan
commit
fa00b797ee
@ -0,0 +1,41 @@ |
||||
template(name="brokenCardsHeaderBar") |
||||
h1 |
||||
| Broken Cards |
||||
|
||||
template(name="brokenCards") |
||||
.wrapper |
||||
.broken-cards-wrapper |
||||
each card in brokenCardsList |
||||
.broken-cards-card-wrapper |
||||
.broken-cards-card-title |
||||
= card.title |
||||
ul.broken-cards-context-list |
||||
li.broken-cards-context(title="{{_ 'board'}}") |
||||
if card.boardId |
||||
+viewer |
||||
= card.getBoard.title |
||||
else |
||||
.broken-cards-null |
||||
| NULL |
||||
li.broken-cards-context.broken-cards-context-separator |
||||
= ' ' |
||||
| {{_ 'context-separator'}} |
||||
= ' ' |
||||
li.broken-cards-context(title="{{_ 'swimlane'}}") |
||||
if card.swimlaneId |
||||
+viewer |
||||
= card.getSwimlane.title |
||||
else |
||||
.broken-cards-null |
||||
| NULL |
||||
li.broken-cards-context |
||||
= ' ' |
||||
| {{_ 'context-separator'}} |
||||
= ' ' |
||||
li.broken-cards-context(title="{{_ 'list'}}") |
||||
if card.listId |
||||
+viewer |
||||
= card.getList.title |
||||
else |
||||
.broken-cards-null |
||||
| NULL |
@ -0,0 +1,26 @@ |
||||
BlazeComponent.extendComponent({}).register('brokenCardsHeaderBar'); |
||||
|
||||
Template.brokenCards.helpers({ |
||||
userId() { |
||||
return Meteor.userId(); |
||||
}, |
||||
}); |
||||
|
||||
BlazeComponent.extendComponent({ |
||||
onCreated() { |
||||
Meteor.subscribe('setting'); |
||||
Meteor.subscribe('brokenCards'); |
||||
}, |
||||
|
||||
brokenCardsList() { |
||||
const selector = { |
||||
$or: [ |
||||
{ boardId: { $in: [null, ''] } }, |
||||
{ swimlaneId: { $in: [null, ''] } }, |
||||
{ listId: { $in: [null, ''] } }, |
||||
], |
||||
}; |
||||
|
||||
return Cards.find(selector); |
||||
}, |
||||
}).register('brokenCards'); |
@ -0,0 +1,31 @@ |
||||
.broken-cards-card-wrapper |
||||
margin-top: 0 |
||||
margin-bottom: 10px |
||||
border-width: 3px !important |
||||
border-color: grey !important |
||||
border-style: solid |
||||
border-radius: 5px |
||||
padding: 1.5rem |
||||
background-color: white |
||||
|
||||
.broken-cards-wrapper |
||||
max-width: 500px |
||||
margin-right: auto |
||||
margin-left: auto |
||||
|
||||
.broken-cards-card-title |
||||
font-weight: bold |
||||
//padding: 10px |
||||
|
||||
.broken-cards-context |
||||
display: inline-block |
||||
|
||||
.broken-cards-context-separator |
||||
font-weight: bold |
||||
|
||||
.broken-cards-context-list |
||||
//margin-bottom: 0.7rem |
||||
|
||||
.broken-cards-null |
||||
color: darkred |
||||
font-style: italic |
Loading…
Reference in new issue