monitoring: Simplify customvars markup

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 16:05:52 +02:00
parent 3cbc8602a4
commit 523a1cff31
1 changed files with 5 additions and 16 deletions

View File

@ -1,17 +1,6 @@
<?php if (empty($object->customvars)) return; ?>
<tr class="newsection">
<td colspan="2">
<h2 class="customvar"><?= $this->translate('Custom variables') ?></h2>
</td>
<?php foreach ($object->customvars as $name => $value): ?>
<tr>
<th><?= $this->escape($name) ?></th>
<td><?= $this->customvar($value) ?></td>
</tr>
<?php
foreach ($object->customvars as $name => $value) {
printf(
'<tr><th>%s</th><td class="customvar">%s</td></tr>' . "\n",
$this->escape($name),
$this->customvar($value)
);
}
<?php endforeach ?>