Display a message instead of empty service matrix

refs #6535
This commit is contained in:
Matthias Jentsch 2014-06-23 12:20:34 +02:00
parent 0efd44e1b0
commit bde6e29c61
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ $hasHeader = false;
$pivotData = $this->pivot->toArray();
$hostFilter = '(' . implode('|', array_keys($pivotData)) . ')';
?>
<?php if (sizeof($pivotData) === 0): ?>
<?= $this->translate('No Service Found'); ?>
<?php endif ?>
<?php foreach ($pivotData as $host_name => $serviceStates): ?>
<?php if (!$hasHeader): ?>
<thead>