mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-20 11:12:53 -05:00
Merge pull request #155 from Icinga/bugfix/tile-view-info-url
Show the info URL also in the tile view
This commit is contained in:
commit
c741d52a89
2 changed files with 19 additions and 0 deletions
|
|
@ -221,6 +221,20 @@ class NodeTile extends BaseElement
|
|||
'data-base-target' => '_next'
|
||||
)
|
||||
));
|
||||
|
||||
$url = $node->getInfoUrl();
|
||||
|
||||
if ($url !== null) {
|
||||
$this->actions()->add(Link::create(
|
||||
Icon::create('info-circled'),
|
||||
$url,
|
||||
null,
|
||||
array(
|
||||
'title' => sprintf('%s: %s', $this->translate('More information'), $url),
|
||||
'class' => 'node-info'
|
||||
)
|
||||
));
|
||||
}
|
||||
} else {
|
||||
// $url = $this->makeMonitoredNodeUrl($node);
|
||||
if ($node instanceof ServiceNode) {
|
||||
|
|
|
|||
|
|
@ -493,6 +493,11 @@ td > a > .badges {
|
|||
background-color: white;
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
> .node-info {
|
||||
margin-right: 0.3em;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue