diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-11-18 13:38:03 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-19 18:07:17 +0100 |
commit | 8f55b1a27d97f24751542b6dc44a89eb03387a75 (patch) | |
tree | e2fefe439ea81b248beb9320f1e620aa733a847d /apps/federation/templates | |
parent | 97c60fd21794a6a0a56dc69ba8b77ab93b5d212c (diff) | |
download | nextcloud-server-8f55b1a27d97f24751542b6dc44a89eb03387a75.tar.gz nextcloud-server-8f55b1a27d97f24751542b6dc44a89eb03387a75.zip |
add status to server list
Diffstat (limited to 'apps/federation/templates')
-rw-r--r-- | apps/federation/templates/settings-admin.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/federation/templates/settings-admin.php b/apps/federation/templates/settings-admin.php index faa1e393158..f9087137d56 100644 --- a/apps/federation/templates/settings-admin.php +++ b/apps/federation/templates/settings-admin.php @@ -1,5 +1,7 @@ <?php /** @var array $_ */ +use OCA\Federation\TrustedServers; + /** @var OC_L10N $l */ script('federation', 'settings-admin'); style('federation', 'settings-admin') @@ -21,7 +23,14 @@ style('federation', 'settings-admin') </p> <ul id="listOfTrustedServers"> <?php foreach($_['trustedServers'] as $trustedServer) { ?> - <li id="<?php p($trustedServer['id']); ?>"> + <li id="<?php p($trustedServer['id']); ?>" class="icon-delete"> + <?php if((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?> + <span class="status success"></span> + <?php } elseif((int)$trustedServer['status'] === TrustedServers::STATUS_PENDING) { ?> + <span class="status indeterminate"></span> + <?php } else {?> + <span class="status error"></span> + <?php } ?> <?php p($trustedServer['url']); ?> </li> <?php } ?> |