Fixed quota on homepage (files)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
f09a70e9b5
commit
f038ecbfe3
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue