mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-29 10:09:35 -05:00
Show the info URL also in the tile view
This commit is contained in:
parent
00e2f1886a
commit
89347648e1
1 changed files with 16 additions and 0 deletions
|
|
@ -97,6 +97,22 @@ class NodeTile extends BaseElement
|
|||
$this->addActionLinks();
|
||||
}
|
||||
|
||||
if ($node instanceof BpNode) {
|
||||
$url = $node->getInfoUrl();
|
||||
|
||||
if ($url !== null) {
|
||||
$this->actions()->add(Link::create(
|
||||
Icon::create('help'),
|
||||
$url,
|
||||
null,
|
||||
array(
|
||||
'title' => sprintf('%s: %s', $this->translate('More information'), $url),
|
||||
'style' => 'float: right'
|
||||
)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
return parent::render();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue