mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +02:00
TemplatesTable: link hosts to "edit" as long as...
...usage is missing
This commit is contained in:
parent
9e044c558e
commit
1a7a83e28b
@ -48,9 +48,16 @@ class TemplatesTable extends ZfQueryBasedTable
|
|||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// TODO: remove this once we have host template usage
|
||||||
|
if ($type === 'host') {
|
||||||
|
$url = Url::fromPath("director/host", [
|
||||||
|
'name' => $row->object_name
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
$url = Url::fromPath("director/${type}template/usage", [
|
$url = Url::fromPath("director/${type}template/usage", [
|
||||||
'name' => $row->object_name
|
'name' => $row->object_name
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
return $this::tr([
|
return $this::tr([
|
||||||
$this::td(new Link($caption, $url)),
|
$this::td(new Link($caption, $url)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user