Fixed pinned state of quota if no apps registered an app nav item

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-12-14 12:06:28 +01:00
parent 1f108970c4
commit 0c38c1b2db
No known key found for this signature in database
GPG key ID: FB5ACEED51955BF8

View file

@ -11,7 +11,7 @@
</a>
</li>
<?php } ?>
<li id="quota" class="pinned <?php
<li id="quota" class="pinned <?php p($pinned===0?'first-pinned ':'') ?><?php
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
} ?>">