From b4c47c51e7a354b69f7b85d6feb8e23ba693ac58 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 14 Jan 2015 11:50:03 +0100 Subject: [PATCH] components/actions: show links if available Now we show links regardless of whether we have host actions, there might be hook-provided links only. Renamed "Foreign URLs" to "Actions" and made it translatable. --- .../views/scripts/show/components/actions.phtml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/monitoring/application/views/scripts/show/components/actions.phtml b/modules/monitoring/application/views/scripts/show/components/actions.phtml index c34141084..1d926b33a 100644 --- a/modules/monitoring/application/views/scripts/show/components/actions.phtml +++ b/modules/monitoring/application/views/scripts/show/components/actions.phtml @@ -1,9 +1,5 @@ action_url && ! $object->notes_url) { - return; -} - $links = array(); $linkText = '%s'; $localLinkText = '%s'; @@ -39,8 +35,12 @@ if (isset($this->hostActions)) { } } +if (empty($links)) { + return; +} + ?> - Foreign URLs + translate('Actions') ?>