- Hide Linked Card and Linked Board on Sandstorm, because they are only

useful when having multiple boards, and at Sandstorm
  there is only one board per grain. Thanks to ocdtrekkie and xet7.

Closes #1982
This commit is contained in:
Lauri Ojansivu 2018-11-03 10:25:31 +02:00
parent 8c6c089363
commit dda36f4eb3
2 changed files with 21 additions and 15 deletions

View file

@ -19,14 +19,16 @@ template(name="cardDetails")
a.js-parent-card(href=linkForCard) {{title}}
// else
{{_ 'top-level-card'}}
if isLinkedCard
h3.linked-card-location
+viewer
| {{getBoardTitle}} > {{getTitle}}
unless isSandstorm
if isLinkedCard
h3.linked-card-location
+viewer
| {{getBoardTitle}} > {{getTitle}}
if getArchived
if isLinkedBoard
p.warning {{_ 'board-archived'}}
unless isSandstorm
p.warning {{_ 'board-archived'}}
else
p.warning {{_ 'card-archived'}}
@ -190,9 +192,11 @@ template(name="cardDetails")
unless currentUser.isNoComments
if isLoaded.get
if isLinkedCard
+activities(card=this mode="linkedcard")
unless isSandstorm
+activities(card=this mode="linkedcard")
else if isLinkedBoard
+activities(card=this mode="linkedboard")
unless isSandstorm
+activities(card=this mode="linkedboard")
else
+activities(card=this mode="card")