mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
components/actions: show host action urls if given
This commit is contained in:
parent
0d3131fbd0
commit
0fa31acf5f
@ -6,6 +6,7 @@ if (! $object->action_url && ! $object->notes_url) {
|
|||||||
|
|
||||||
$links = array();
|
$links = array();
|
||||||
$linkText = '<a href="%s" target="_blank">%s</a>';
|
$linkText = '<a href="%s" target="_blank">%s</a>';
|
||||||
|
$localLinkText = '<a href="%s">%s</a>';
|
||||||
|
|
||||||
if ($object->notes_url) {
|
if ($object->notes_url) {
|
||||||
if (strpos($object->notes_url, "' ") === false) {
|
if (strpos($object->notes_url, "' ") === false) {
|
||||||
@ -32,6 +33,12 @@ if ($object->action_url) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($this->hostActions)) {
|
||||||
|
foreach ($this->hostActions as $id => $action) {
|
||||||
|
$links[] = sprintf($localLinkText, $action, $id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Foreign URLs</th>
|
<th>Foreign URLs</th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user