summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-09-03 10:00:01 -0400
committerClark Tomlinson <fallen013@gmail.com>2014-09-03 10:04:46 -0400
commit27de0e5621c78bc8e70d060ad217cbf9ec61df83 (patch)
tree77bae51d5a11f9b17e9e68191a2349ce6d3e0a5d /apps/files_sharing/templates
parentd64cacec438e379a39fd2e791020f417b3737d9b (diff)
downloadnextcloud-server-27de0e5621c78bc8e70d060ad217cbf9ec61df83.tar.gz
nextcloud-server-27de0e5621c78bc8e70d060ad217cbf9ec61df83.zip
Hiding add to your own cloud if server2server sharing is not enabled
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 42103296d87..a4b3289d4c6 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -23,13 +23,18 @@
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div class="header-right">
<span id="details">
- <span id="save" data-protected="<?php p($_['protected'])?>" data-owner="<?php p($_['displayName'])?>" data-name="<?php p($_['filename'])?>">
+ <?php
+ if ($_['server2serversharing']) {
+ ?>
+ <span id="save" data-protected="<?php p($_['protected']) ?>"
+ data-owner="<?php p($_['displayName']) ?>" data-name="<?php p($_['filename']) ?>">
<button id="save-button"><?php p($l->t('Add to your ownCloud')) ?></button>
<form class="save-form hidden" action="#">
<input type="text" id="remote_address" placeholder="example.com/owncloud"/>
<button id="save-button-confirm" class="icon-confirm svg"></button>
</form>
</span>
+ <?php } ?>
<a href="<?php p($_['downloadURL']); ?>" id="download" class="button">
<img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/>
<span id="download-text"><?php p($l->t('Download'))?></span>