summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-27 14:16:25 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-27 22:13:19 +0200
commitd54253d4e4b7a61ad6f1ed1a68720fc4573f29c4 (patch)
treeedc6592ad21128d8b49a68be815aaf4bc99c5578 /settings/templates
parent46da059b8fb47f4899e7b23c813daf376b29277e (diff)
downloadnextcloud-server-d54253d4e4b7a61ad6f1ed1a68720fc4573f29c4.tar.gz
nextcloud-server-d54253d4e4b7a61ad6f1ed1a68720fc4573f29c4.zip
Implement progress theming into core and better visual on quota display
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/settings/personal/personal.info.php20
1 files changed, 17 insertions, 3 deletions
diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php
index 084b34af96c..d6f6061ebf2 100644
--- a/settings/templates/settings/personal/personal.info.php
+++ b/settings/templates/settings/personal/personal.info.php
@@ -38,9 +38,23 @@ vendor_style('jcrop/css/jquery.Jcrop');
?>
<div id="quota" class="section">
- <div style="width:<?php p($_['usage_relative']);?>%"
- <?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
- <p id="quotatext">
+ <progress value="<?php p($_['usage_relative']); ?>" max="100"
+ <?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress>
+
+ <div style="width:<?php p($_['usage_relative']);?>%" class="quotatext-fg
+ <?php if($_['usage_relative'] > 80): ?> quota-warning <?php endif; ?>">
+ <p class="quotatext">
+ <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
+ <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
+ [$_['usage'], $_['total_space']]));?>
+ <?php else: ?>
+ <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
+ [$_['usage'], $_['total_space'], $_['usage_relative']]));?>
+ <?php endif ?>
+ </p>
+ </div>
+ <div class="quotatext-bg">
+ <p class="quotatext">
<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
[$_['usage'], $_['total_space']]));?>