diff options
author | icewind1991 <robin@icewind.nl> | 2014-06-17 17:40:05 +0200 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-06-17 17:40:05 +0200 |
commit | 8d1cf79152b16b11e8be3bc6cc57f5a9e72b04dd (patch) | |
tree | ef158aadc779e95845384783bbe668abed4c2d85 /apps/files_sharing/templates | |
parent | cce58368ad03f4ef3d8a1ad3e26e09fc51ca716a (diff) | |
parent | 07fdeba50b47848c995d38408635020e08cecb19 (diff) | |
download | nextcloud-server-8d1cf79152b16b11e8be3bc6cc57f5a9e72b04dd.tar.gz nextcloud-server-8d1cf79152b16b11e8be3bc6cc57f5a9e72b04dd.zip |
Merge pull request #8399 from owncloud/server-server-sharing
Add server<->server sharing
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 17 | ||||
-rw-r--r-- | apps/files_sharing/templates/settings-admin.php | 13 |
2 files changed, 26 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 7b5f603a105..c053aaabece 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -15,10 +15,19 @@ src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a> <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> <div class="header-right"> - <a href="<?php p($_['downloadURL']); ?>" id="download" class="button"> - <img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/> - <?php p($l->t('Download'))?> - </a> + <span id="details"> + <span id="save" data-protected="<?php p($_['protected'])?>" data-owner="<?php p($_['displayName'])?>" data-name="<?php p($_['filename'])?>"> + <button><?php p($l->t('Save to ownCloud')) ?></button> + <form class="save-form hidden" action="#"> + <input type="text" id="remote_address" placeholder="<?php p($l->t('example.com/owncloud')) ?>"/> + <input type="submit" value="<?php p($l->t('Save')) ?>"/> + </form> + </span> + <a href="<?php p($_['downloadURL']); ?>" id="download" class="button"> + <img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/> + <?php p($l->t('Download'))?> + </a> + </span> </div> </div></header> <div id="content"> diff --git a/apps/files_sharing/templates/settings-admin.php b/apps/files_sharing/templates/settings-admin.php new file mode 100644 index 00000000000..18cf2276701 --- /dev/null +++ b/apps/files_sharing/templates/settings-admin.php @@ -0,0 +1,13 @@ +<div class="section" id="fileSharingSettings" > + + <h2><?php p($l->t('File Sharing'));?></h2> + + <input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" + value="1" <?php if ($_['outgoingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> /> + <label for="outgoingServer2serverShareEnabled"><?php p($l->t('Allow other instances to mount public links shared from this server'));?></label><br/> + + <input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" + value="1" <?php if ($_['incomingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> /> + <label for="incomingServer2serverShareEnabled"><?php p($l->t('Allow users to mount public link shares'));?></label><br/> + +</div> |