detail-content: Use widget `CustomVarTable` to render custom vars

This commit is contained in:
Johannes Meyer 2021-12-02 15:16:39 +01:00
parent 6085b02b16
commit 83e8b3b8e8
1 changed files with 3 additions and 6 deletions

View File

@ -45,12 +45,9 @@
<?php if (! empty($object->customvars)): ?>
<h2><?= $this->translate('Custom Variables') ?></h2>
<table id="<?= $object->type ?>-customvars" class="name-value-table collapsible" data-visible-height="200">
<tbody>
<?= $this->render('show/components/customvars.phtml') ?>
</tbody>
</table>
<div id="<?= $object->type ?>-customvars" data-visible-height="200" class="collapsible">
<?= (new \Icinga\Module\Monitoring\Web\Widget\CustomVarTable($object->customvarsWithOriginalNames, $object)) ?>
</div>
<?php endif ?>
<?= $this->render('show/components/flags.phtml') ?>
</div>