summaryrefslogtreecommitdiffstats
path: root/client/components/cards/minicard.jade
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-26 02:13:31 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:51 +0300
commitc0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145 (patch)
tree991e195f99639c69479381c4a72c17b6da1ba115 /client/components/cards/minicard.jade
parent94a52080cff14f7587c0ee837c1fca131cd6aff0 (diff)
downloadwekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.tar.gz
wekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.tar.bz2
wekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.zip
Show parent in card (no links, yet)
Diffstat (limited to 'client/components/cards/minicard.jade')
-rw-r--r--client/components/cards/minicard.jade16
1 files changed, 15 insertions, 1 deletions
diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade
index 2a8e95ab..9a9b897f 100644
--- a/client/components/cards/minicard.jade
+++ b/client/components/cards/minicard.jade
@@ -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 ' &gt; ' }}] {{ title }}
+ else
+ if $eq 'prefix-with-parent' currentBoard.presentParentTask
+ [{{ parentCardName }}] {{ title }}
+ else
+ = title
+ if $eq 'subtext-with-full-path' currentBoard.presentParentTask
+ .small {{ parentString ' &gt; ' }}
+ if $eq 'subtext-with-parent' currentBoard.presentParentTask
+ .small {{ parentCardName }}
+
.dates
if receivedAt
unless startAt