actions.phtml: Load actions from shareables and user preferences

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-07 10:54:43 +02:00
parent 860edb9768
commit e27aa04c4b
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
use Icinga\Web\Navigation\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
$newTabInfo = sprintf('<span class="info-box display-on-hover"> %s </span>', $this->translate('opens in new window'));