Allow custom classes on nav entries
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
9b472024a1
commit
edc9f176e5
|
@ -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']);?>
|
||||||
|
|
Loading…
Reference in New Issue