diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-08 16:42:43 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-06-13 11:17:42 +0200 |
commit | 0554dba69eeb7caff308caf914331e80ed14380c (patch) | |
tree | 363ba815db5daea25fa396e204d798cafd8711f2 /apps/files/templates | |
parent | c46422b780621d5ac700e7ca2f6ddf7b1386482f (diff) | |
download | nextcloud-server-0554dba69eeb7caff308caf914331e80ed14380c.tar.gz nextcloud-server-0554dba69eeb7caff308caf914331e80ed14380c.zip |
Add quota to the files view
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/appnavigation.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 9c79f806713..28019ba803d 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -1,4 +1,17 @@ <div id="app-navigation"> + <div id="quota" class="section has-tooltip" title="<?php + if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { + p($l->t('You are using %s of %s', [$_['usage'], $_['total_space']])); + } else { + p($l->t('You are using %s of %s (%s %%)', [$_['usage'], $_['total_space'], $_['usage_relative']])); + } + ?>"> + <div style="width:<?php p($_['usage_relative']);?>%" + <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>> + <p id="quotatext"><?php p($l->t('%s of %s in use', [$_['usage'], $_['total_space']])); ?></p> + </div> + </div> + <ul class="with-icon"> <?php foreach ($_['navigationItems'] as $item) { ?> <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>"> |