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", [
|
||||
'name' => $row->object_name
|
||||
]);
|
||||
}
|
||||
|
||||
return $this::tr([
|
||||
$this::td(new Link($caption, $url)),
|
||||
|
|
Loading…
Reference in New Issue