mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-25 06:44:37 +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
|
||||
)
|
||||
];
|
||||
|
||||
$url = Url::fromPath("director/${type}template/usage", [
|
||||
'name' => $row->object_name
|
||||
]);
|
||||
// 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", [
|
||||
'name' => $row->object_name
|
||||
]);
|
||||
}
|
||||
|
||||
return $this::tr([
|
||||
$this::td(new Link($caption, $url)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user