mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add imported card location
This commit is contained in:
parent
f0597ef0c4
commit
bce2242528
3 changed files with 24 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ template(name="cardDetails")
|
||||||
a.js-parent-card(href=linkForCard) {{title}}
|
a.js-parent-card(href=linkForCard) {{title}}
|
||||||
// else
|
// else
|
||||||
{{_ 'top-level-card'}}
|
{{_ 'top-level-card'}}
|
||||||
|
if isImportedCard
|
||||||
|
h3.imported-card-location
|
||||||
|
+viewer
|
||||||
|
| {{getBoardTitle}} > {{getTitle}}
|
||||||
|
|
||||||
if getArchived
|
if getArchived
|
||||||
if isImportedBoard
|
if isImportedBoard
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,12 @@
|
||||||
margin: 7px 0 0
|
margin: 7px 0 0
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
.imported-card-location
|
||||||
|
font-style: italic
|
||||||
|
font-size: 1em
|
||||||
|
margin-bottom: 0
|
||||||
|
& p
|
||||||
|
margin-bottom: 0
|
||||||
|
|
||||||
form.inlined-form
|
form.inlined-form
|
||||||
margin-top: 5px
|
margin-top: 5px
|
||||||
|
|
|
||||||
|
|
@ -703,6 +703,20 @@ Cards.helpers({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getBoardTitle() {
|
||||||
|
if (this.isImportedCard()) {
|
||||||
|
const card = Cards.findOne({ _id: this.importedId });
|
||||||
|
const board = Boards.findOne({ _id: card.boardId });
|
||||||
|
return board.title;
|
||||||
|
} else if (this.isImportedBoard()) {
|
||||||
|
const board = Boards.findOne({ _id: this.importedId});
|
||||||
|
return board.title;
|
||||||
|
} else {
|
||||||
|
const board = Boards.findOne({ _id: this.boardId });
|
||||||
|
return board.title;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
setTitle(title) {
|
setTitle(title) {
|
||||||
if (this.isImportedCard()) {
|
if (this.isImportedCard()) {
|
||||||
return Cards.update(
|
return Cards.update(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue