monitoring: Simplify perfdata view script

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 17:19:24 +02:00
parent 5304f0a0df
commit 13bf999868
1 changed files with 4 additions and 11 deletions

View File

@ -1,11 +1,4 @@
<?php if (! $object->perfdata) return ?>
<tr class="newsection">
<td colspan="2">
<h2><?= $this->translate('Performance data') ?></h2>
</td>
</tr>
<tr>
<td colspan="2" class="performance-data">
<?= $this->perfdata($object->perfdata) ?>
</td>
</tr>
<?php if ($object->perfdata): ?>
<h2><?= $this->translate('Performance data') ?></h2>
<?= $this->perfdata($object->perfdata) ?>
<?php endif ?>