Fixed quota on homepage (files)

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-27 16:44:56 +02:00
parent f09a70e9b5
commit f038ecbfe3
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
2 changed files with 4 additions and 5 deletions

View File

@ -11,7 +11,7 @@
</a>
</li>
<?php } ?>
<li id="quota" class="section pinned <?php
<li id="quota" class="pinned <?php
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
} ?>">
@ -23,9 +23,8 @@
p($l->t('%s used', [$_['usage']]));
} ?></p>
<div class="quota-container">
<div style="width:<?php p($_['usage_relative']);?>%"
<?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
</div>
<progress value="<?php p($_['usage_relative']); ?>" max="100"
<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress>
</div>
</a>
</li>

View File

@ -925,7 +925,7 @@ code {
font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
}
#quota {
#body-settings #quota {
cursor: default;
margin: 30px !important;
position: relative;