mirror of
https://github.com/wekan/wekan.git
synced 2026-02-13 03:34:20 +01:00
Indicate board or card through icons. Indicate if archived
This commit is contained in:
parent
10aab8a733
commit
f0597ef0c4
6 changed files with 40 additions and 4 deletions
|
|
@ -20,8 +20,11 @@ template(name="cardDetails")
|
|||
// else
|
||||
{{_ 'top-level-card'}}
|
||||
|
||||
if archived
|
||||
p.warning {{_ 'card-archived'}}
|
||||
if getArchived
|
||||
if isImportedBoard
|
||||
p.warning {{_ 'board-archived'}}
|
||||
else
|
||||
p.warning {{_ 'card-archived'}}
|
||||
|
||||
.card-details-items
|
||||
.card-details-item.card-details-item-received
|
||||
|
|
|
|||
|
|
@ -15,8 +15,15 @@ template(name="minicard")
|
|||
if $eq 'prefix-with-parent' currentBoard.presentParentTask
|
||||
.parent-prefix
|
||||
| {{ parentCardName }}
|
||||
if isImported
|
||||
span.imported-icon.fa.fa-share-alt
|
||||
if isImportedBoard
|
||||
a.js-imported-link
|
||||
span.imported-icon.fa.fa-folder
|
||||
else if isImportedCard
|
||||
a.js-imported-link
|
||||
span.imported-icon.fa.fa-id-card
|
||||
if getArchived
|
||||
span.imported-icon.imported-archived.fa.fa-archive
|
||||
|
||||
+viewer
|
||||
= getTitle
|
||||
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
|
||||
|
|
|
|||
|
|
@ -6,4 +6,15 @@ BlazeComponent.extendComponent({
|
|||
template() {
|
||||
return 'minicard';
|
||||
},
|
||||
|
||||
events() {
|
||||
return [{
|
||||
'click .js-imported-link' (evt) {
|
||||
if (this.data().isImportedCard())
|
||||
Utils.goCardId(this.data().importedId);
|
||||
else if (this.data().isImportedBoard())
|
||||
Utils.goBoardId(this.data().importedId);
|
||||
},
|
||||
}];
|
||||
},
|
||||
}).register('minicard');
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@
|
|||
margin-right: 11px
|
||||
vertical-align: baseline
|
||||
font-size: 0.9em
|
||||
.imported-archived
|
||||
color: #937760
|
||||
|
||||
.is-selected &
|
||||
transform: translateX(11px)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue