summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-08-29 16:46:08 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-08-29 16:46:08 +0200
commit41ace0391104ca7b65167d3bcee3b1960d21bb89 (patch)
treecabe53cf18fa71100e65ff94b5e06e2247e77ec1 /settings/templates
parent3ba66e33f8f2018350e96a807475960955f1e9c3 (diff)
downloadnextcloud-server-41ace0391104ca7b65167d3bcee3b1960d21bb89.tar.gz
nextcloud-server-41ace0391104ca7b65167d3bcee3b1960d21bb89.zip
color quota bar yellow for feedback if usage is over 90%
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 661c242ea6b..33534e59f19 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -34,7 +34,8 @@
<div id="quota" class="section">
- <div style="width:<?php p($_['usage_relative']);?>%;">
+ <div style="width:<?php p($_['usage_relative']);?>%;
+ <?php if($_['usage_relative'] > 80): ?>background-color:#fc4;<?php endif; ?>">
<p id="quotatext">
<?php print_unescaped($l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>',
array($_['usage'], $_['total_space'])));?>