mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
actions.phtml: Load actions from shareables and user preferences
refs #5600
This commit is contained in:
parent
860edb9768
commit
e27aa04c4b
@ -3,6 +3,10 @@
|
|||||||
use Icinga\Web\Navigation\Navigation;
|
use Icinga\Web\Navigation\Navigation;
|
||||||
|
|
||||||
$navigation = new Navigation();
|
$navigation = new Navigation();
|
||||||
|
$navigation->load($object->getType() . '-action');
|
||||||
|
foreach ($navigation as $item) {
|
||||||
|
$item->setObject($object);
|
||||||
|
}
|
||||||
|
|
||||||
// add warning to links that open in new tabs to improve accessibility, as recommended by WCAG20 G201
|
// add warning to links that open in new tabs to improve accessibility, as recommended by WCAG20 G201
|
||||||
$newTabInfo = sprintf('<span class="info-box display-on-hover"> %s </span>', $this->translate('opens in new window'));
|
$newTabInfo = sprintf('<span class="info-box display-on-hover"> %s </span>', $this->translate('opens in new window'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user