Skip to content

Commit

Permalink
actions.phtml: Load actions from shareables and user preferences
Browse files Browse the repository at this point in the history
refs #5600
  • Loading branch information
Johannes Meyer committed Sep 7, 2015
1 parent 860edb9 commit e27aa04
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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'));
Expand Down

0 comments on commit e27aa04

Please sign in to comment.