Show the info URL also in the tile view

This commit is contained in:
Alexander A. Klimov 2017-12-04 11:31:12 +01:00
parent 00e2f1886a
commit 89347648e1

View file

@ -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();
}