Skip to content

Commit

Permalink
monitoring: Simplify customvars markup
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 24, 2015
1 parent 3cbc860 commit 523a1cf
Showing 1 changed file with 5 additions and 16 deletions.
@@ -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 ?>

0 comments on commit 523a1cf

Please sign in to comment.