mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
NavigationRenderer: Provide a id for outer item markup (<li>)
refs #5600
This commit is contained in:
parent
2855778dc7
commit
baefc89f85
@ -316,9 +316,13 @@ class NavigationRenderer implements RecursiveIterator, NavigationRendererInterfa
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($cssClass)) {
|
if (! empty($cssClass)) {
|
||||||
$content = sprintf('<li class="%s">', join(' ', $cssClass));
|
$content = sprintf(
|
||||||
|
'<li id="%s" class="%s">',
|
||||||
|
$this->view()->escape($item->getUniqueName()),
|
||||||
|
join(' ', $cssClass)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
$content = '<li>';
|
$content = '<li id="' . $this->view()->escape($item->getUniqueName()) . '">';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user