aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-05-17 12:06:51 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-23 12:36:38 +0200
commit8bd887b2c6e821a5809b5e7eabc29358923c3ca7 (patch)
tree23275850f786d2ab01bc37582c0aed6a248d09a2 /settings
parent9e924d74c96f9d6545ab0d204719c8486c5c8cb7 (diff)
downloadnextcloud-server-8bd887b2c6e821a5809b5e7eabc29358923c3ca7.tar.gz
nextcloud-server-8bd887b2c6e821a5809b5e7eabc29358923c3ca7.zip
add storage info, fix URL generation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'settings')
-rw-r--r--settings/templates/settings/personal/personal.info.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php
index eb1bb43d267..dd271563c60 100644
--- a/settings/templates/settings/personal/personal.info.php
+++ b/settings/templates/settings/personal/personal.info.php
@@ -42,6 +42,21 @@ 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">
+ <?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>
+
<div id="personal-settings">
<div id="personal-settings-avatar-container">
<form id="avatarform" class="section" method="post" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.postAvatar')); ?>">