mirror of
https://github.com/wekan/wekan.git
synced 2026-01-28 04:06:10 +01:00
Show parent in card (no links, yet)
This commit is contained in:
parent
94a52080cf
commit
c0ffd6c20f
10 changed files with 193 additions and 8 deletions
|
|
@ -13,6 +13,12 @@ template(name="cardDetails")
|
|||
= title
|
||||
if isWatching
|
||||
i.fa.fa-eye.card-details-watch
|
||||
.card-details-path
|
||||
each parentList
|
||||
| >
|
||||
a.js-parent-card {{title}}
|
||||
// else
|
||||
{{_ 'top-level-card'}}
|
||||
|
||||
if archived
|
||||
p.warning {{_ 'card-archived'}}
|
||||
|
|
|
|||
|
|
@ -70,6 +70,14 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
|
||||
presentParentTask() {
|
||||
let result = this.currentBoard.presentParentTask;
|
||||
if ((result === null) || (result === undefined)) {
|
||||
result = 'no-parent';
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
||||
onRendered() {
|
||||
if (!Utils.isMiniScreen()) this.scrollParentContainer();
|
||||
const $checklistsDom = this.$('.card-checklist-items');
|
||||
|
|
|
|||
|
|
@ -8,7 +8,21 @@ template(name="minicard")
|
|||
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
||||
.minicard-title
|
||||
+viewer
|
||||
= title
|
||||
if isTopLevel
|
||||
= title
|
||||
else
|
||||
if $eq 'prefix-with-full-path' currentBoard.presentParentTask
|
||||
[{{ parentString ' > ' }}] {{ title }}
|
||||
else
|
||||
if $eq 'prefix-with-parent' currentBoard.presentParentTask
|
||||
[{{ parentCardName }}] {{ title }}
|
||||
else
|
||||
= title
|
||||
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
|
||||
.small {{ parentString ' > ' }}
|
||||
if $eq 'subtext-with-parent' currentBoard.presentParentTask
|
||||
.small {{ parentCardName }}
|
||||
|
||||
.dates
|
||||
if receivedAt
|
||||
unless startAt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue