mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
cab89914bb
commit
50869c783d
@ -79,6 +79,16 @@ class MonitoringMenuItemRenderer implements MenuItemRenderer {
|
|||||||
$count
|
$count
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if ($menu->getIcon() && strpos($menu->getIcon(), '.') === false) {
|
||||||
|
return sprintf(
|
||||||
|
'<a href="%s" class="icon-%s">%s%s</a>',
|
||||||
|
$menu->getUrl() ?: '#',
|
||||||
|
$menu->getIcon(),
|
||||||
|
htmlspecialchars($menu->getTitle()),
|
||||||
|
$badge
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'<a href="%s">%s%s%s</a>',
|
'<a href="%s">%s%s%s</a>',
|
||||||
$menu->getUrl() ?: '#',
|
$menu->getUrl() ?: '#',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user