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…
Reference in New Issue