components/actions: show host action urls if given

This commit is contained in:
Thomas Gelf 2015-01-14 11:02:43 +01:00
parent 0d3131fbd0
commit 0fa31acf5f
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ if (! $object->action_url && ! $object->notes_url) {
$links = array();
$linkText = '<a href="%s" target="_blank">%s</a>';
$localLinkText = '<a href="%s">%s</a>';
if ($object->notes_url) {
if (strpos($object->notes_url, "' ") === false) {
@ -32,6 +33,12 @@ if ($object->action_url) {
}
}
if (isset($this->hostActions)) {
foreach ($this->hostActions as $id => $action) {
$links[] = sprintf($localLinkText, $action, $id);
}
}
?>
<tr>
<th>Foreign URLs</th>