mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
nav: also permit fa icons for dependencies
This commit is contained in:
parent
c4b6e4bdda
commit
526af93de8
@ -11,7 +11,7 @@ use ipl\Web\Widget\Icon;
|
|||||||
<a class="dashboard-link" href="<?= $this->url($item->getUrl(), $item->getUrlParameters()) ?>"<?= $this->propertiesToString($item->getAttributes()) ?>>
|
<a class="dashboard-link" href="<?= $this->url($item->getUrl(), $item->getUrlParameters()) ?>"<?= $this->propertiesToString($item->getAttributes()) ?>>
|
||||||
<div class="link-icon">
|
<div class="link-icon">
|
||||||
<?php
|
<?php
|
||||||
if (substr($item->getUrl()->getPath(), 0, 9) === 'icingadb/') {
|
if (substr($item->getUrl()->getPath(), 0, 9) === 'icingadb/' || substr($item->getUrl()->getPath(), 0, 13) === 'dependencies/') {
|
||||||
echo new Icon($item->getIcon() ?: 'share', [ 'aria-hidden' => 1]);
|
echo new Icon($item->getIcon() ?: 'share', [ 'aria-hidden' => 1]);
|
||||||
} else {
|
} else {
|
||||||
echo $this->icon($item->getIcon() ?: 'forward', null, array('aria-hidden' => true));
|
echo $this->icon($item->getIcon() ?: 'forward', null, array('aria-hidden' => true));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user