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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li id="quota" class="section pinned <?php
|
<li id="quota" class="pinned <?php
|
||||||
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
|
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
|
||||||
?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
|
?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
|
||||||
} ?>">
|
} ?>">
|
||||||
|
@ -23,9 +23,8 @@
|
||||||
p($l->t('%s used', [$_['usage']]));
|
p($l->t('%s used', [$_['usage']]));
|
||||||
} ?></p>
|
} ?></p>
|
||||||
<div class="quota-container">
|
<div class="quota-container">
|
||||||
<div style="width:<?php p($_['usage_relative']);?>%"
|
<progress value="<?php p($_['usage_relative']); ?>" max="100"
|
||||||
<?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
|
<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -925,7 +925,7 @@ code {
|
||||||
font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
|
font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#quota {
|
#body-settings #quota {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
margin: 30px !important;
|
margin: 30px !important;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in New Issue