Allow custom classes on nav entries

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-17 12:39:13 +02:00
parent 9b472024a1
commit edc9f176e5
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div id="app-navigation"> <div id="app-navigation">
<ul class="with-icon"> <ul class="with-icon">
<li id="quota" class="section <?php <li id="quota" class="section 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'] . '%');
} ?>"> } ?>">
@ -19,7 +19,7 @@
</a> </a>
</li> </li>
<?php foreach ($_['navigationItems'] as $item) { ?> <?php foreach ($_['navigationItems'] as $item) { ?>
<li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>"> <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?>">
<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>" <a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"> class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg">
<?php p($item['name']);?> <?php p($item['name']);?>