components/actions: show host action urls if given
This commit is contained in:
parent
0d3131fbd0
commit
0fa31acf5f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue