summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-11-03 10:25:31 +0200
committerLauri Ojansivu <x@xet7.org>2018-11-03 10:25:31 +0200
commitdda36f4eb3f4cbf23a936513db5f2abe2413db8b (patch)
tree830d93da326aaa1cce03bfd3e49eef33301b41f7
parent8c6c089363800bb1785a2b4d2278ce0316dae152 (diff)
downloadwekan-dda36f4eb3f4cbf23a936513db5f2abe2413db8b.tar.gz
wekan-dda36f4eb3f4cbf23a936513db5f2abe2413db8b.tar.bz2
wekan-dda36f4eb3f4cbf23a936513db5f2abe2413db8b.zip
- 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
-rw-r--r--client/components/cards/cardDetails.jade18
-rw-r--r--client/components/lists/listBody.jade18
2 files changed, 21 insertions, 15 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 33d6d3b7..daeab7d3 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -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")
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade
index f2b3e941..c6c9b204 100644
--- a/client/components/lists/listBody.jade
+++ b/client/components/lists/listBody.jade
@@ -34,13 +34,14 @@ template(name="addCardForm")
.add-controls.clearfix
button.primary.confirm(type="submit") {{_ 'add'}}
- span.quiet
- | {{_ 'or'}}
- a.js-link {{_ 'link'}}
- span.quiet
- | &nbsp;
- | /
- a.js-search {{_ 'search'}}
+ unless isSandstorm
+ span.quiet
+ | {{_ 'or'}}
+ a.js-link {{_ 'link'}}
+ span.quiet
+ | &nbsp;
+ | /
+ a.js-search {{_ 'search'}}
template(name="autocompleteLabelLine")
.minicard-label(class="card-label-{{colorName}}" title=labelName)
@@ -73,7 +74,8 @@ template(name="linkCardPopup")
option(value="{{getId}}") {{getTitle}}
.edit-controls.clearfix
- input.primary.confirm.js-done(type="button" value="{{_ 'link'}}")
+ unless isSandstorm
+ input.primary.confirm.js-done(type="button" value="{{_ 'link'}}")
template(name="searchCardPopup")
label {{_ 'boards'}}: