From e27aa04c4b0b6b8709882fadcfe1629b1e0f1c55 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 10:54:43 +0200 Subject: [PATCH] actions.phtml: Load actions from shareables and user preferences refs #5600 --- .../application/views/scripts/show/components/actions.phtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/monitoring/application/views/scripts/show/components/actions.phtml b/modules/monitoring/application/views/scripts/show/components/actions.phtml index 9e228887d..1f39f6996 100644 --- a/modules/monitoring/application/views/scripts/show/components/actions.phtml +++ b/modules/monitoring/application/views/scripts/show/components/actions.phtml @@ -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(' %s ', $this->translate('opens in new window'));