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:
Eric Lippmann 2018-07-02 17:20:54 +02:00 committed by GitHub
commit c741d52a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -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) {

View file

@ -493,6 +493,11 @@ td > a > .badges {
background-color: white;
color: @text-color;
}
> .node-info {
margin-right: 0.3em;
float: right;
}
}
}