summaryrefslogtreecommitdiffstats
path: root/apps/federation/templates
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-10-29 17:27:14 +0100
committerBjörn Schießle <bjoern@schiessle.org>2015-11-19 18:06:38 +0100
commited039ee5ebdba6778b245f249fe206d2423a6a36 (patch)
treeaa7a172b02e20eb878399c39624ee47496b4fee2 /apps/federation/templates
parent479cee66f40cbb6340b0c1f106101692edde821a (diff)
downloadnextcloud-server-ed039ee5ebdba6778b245f249fe206d2423a6a36.tar.gz
nextcloud-server-ed039ee5ebdba6778b245f249fe206d2423a6a36.zip
added app "federation", allows you to connect ownClouds and exchange user lists
Diffstat (limited to 'apps/federation/templates')
-rw-r--r--apps/federation/templates/settings-admin.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/federation/templates/settings-admin.php b/apps/federation/templates/settings-admin.php
new file mode 100644
index 00000000000..faa1e393158
--- /dev/null
+++ b/apps/federation/templates/settings-admin.php
@@ -0,0 +1,31 @@
+<?php
+/** @var array $_ */
+/** @var OC_L10N $l */
+script('federation', 'settings-admin');
+style('federation', 'settings-admin')
+?>
+<div id="ocFederationSettings" class="section">
+ <h2><?php p($l->t('Federation')); ?></h2>
+ <em><?php p($l->t('ownCloud Federation allows you to connect with other trusted ownClouds to exchange the user directory. For example this will be used to auto-complete external users for federated sharing.')); ?></em>
+
+ <p id="ocFederationShareUsers">
+ <input type="checkbox" class="checkbox" id="shareUsers" />
+ <label for="shareUsers">Share internal user list with other ownClouds</label>
+ </p>
+
+ <h3>Trusted ownCloud Servers</h3>
+ <p id="ocFederationAddServer">
+ <button id="ocFederationAddServerButton" class="">+ Add ownCloud server</button>
+ <input id="serverUrl" class="hidden" type="text" value="" placeholder="ownCloud Server" name="server_url"/>
+ <span class="msg"></span>
+ </p>
+ <ul id="listOfTrustedServers">
+ <?php foreach($_['trustedServers'] as $trustedServer) { ?>
+ <li id="<?php p($trustedServer['id']); ?>">
+ <?php p($trustedServer['url']); ?>
+ </li>
+ <?php } ?>
+ </ul>
+
+</div>
+