Remove help from node detail view

This commit is contained in:
Jennifer Mourek 2018-06-25 15:31:34 +02:00
parent 89347648e1
commit a544f25551
2 changed files with 19 additions and 16 deletions

View file

@ -97,22 +97,6 @@ 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();
}
@ -237,6 +221,20 @@ class NodeTile extends BaseElement
'data-base-target' => '_next'
)
));
$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),
'class' => 'node-help'
)
));
}
} else {
// $url = $this->makeMonitoredNodeUrl($node);
if ($node instanceof ServiceNode) {

View file

@ -466,6 +466,11 @@ div.bp .badges {
color: @text-color;
}
}
.node-help {
margin-right: 0.3em;
float: right;
}
}