diff options
author | Patrik Kernstock <info@pkern.at> | 2018-09-02 04:16:06 +0300 |
---|---|---|
committer | Patrik Kernstock <info@pkern.at> | 2018-09-02 04:16:06 +0300 |
commit | 3e99c960a3ad75106c6b5f4bcf198921cf68656d (patch) | |
tree | b5d2c3815d7ee9e9207a948d665cbdc462574d0e /templates | |
parent | 5ff2dee83e4b234f1830bed58ec0db5c16f731d6 (diff) |
Add NC section to serverinfo UI page
This adds a few monitoring information we already collect anyway - and were already available in the API endpoint.
This currently loads all SystemStatistics, which might be reduced to a smaller dataset in the future for performance reasons. Note: `webServer` in ApiController might be moved to `SystemStatistics` at a later point.
Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/settings-admin.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/settings-admin.php b/templates/settings-admin.php index efca313..d290d5a 100644 --- a/templates/settings-admin.php +++ b/templates/settings-admin.php @@ -53,6 +53,14 @@ style('serverinfo', 'style'); <h2><?php p($l->t('Storage'));?></h2> <p><?php p($l->t('Users:'));?> <em id="numUsersStorage"><?php p($_['storage']['num_users']);?></em></p> <p><?php p($l->t('Files:'));?> <em id="numFilesStorage"><?php p($_['storage']['num_files']);?></em></p> + <p><?php p($l->t('Storages:'));?> <em id="numFilesStorages"><?php p($_['storage']['num_storages']);?></em></p> + <p><?php p($l->t('Free Space:'));?> <em id="numFilesFreeSpace"><?php p($_['system']['freespace']);?></em></p> +</div> +<div class="section" id="ncSection"> + <h2><?php p($l->t('Nextcloud'));?></h2> + <p><?php p($l->t('Version:'));?> <em id="ncVersion"><?php p($_['system']['version']);?></em></p> + <p><?php p($l->t('Apps installed:'));?> <em id="ncAppsInstalled"><?php p($_['system']['apps']['num_installed']);?></em></p> + <p><?php p($l->t('Apps updates available:'));?> <em id="ncAppsUpdates"><?php p($_['system']['apps']['num_updates_available']);?></em></p> </div> <div class="section" id="phpSection"> <h2><?php p($l->t('PHP'));?></h2> |