monitoring: Remove trailing semicolons from inline echo tags in the service groups overview

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-28 17:37:26 +02:00
parent 5d95229d5b
commit 8a6df11bf2
1 changed files with 39 additions and 39 deletions

View File

@ -1,10 +1,10 @@
<?php if (! $this->compact): ?> <?php if (! $this->compact): ?>
<div class="controls"> <div class="controls">
<?= $this->tabs; ?> <?= $this->tabs ?>
<?= $this->sortBox; ?> <?= $this->sortBox ?>
<?= $this->limiter; ?> <?= $this->limiter ?>
<?= $this->paginator; ?> <?= $this->paginator ?>
<?= $this->filterEditor; ?> <?= $this->filterEditor ?>
</div> </div>
<?php endif ?> <?php endif ?>
<div class="content"> <div class="content">
@ -14,64 +14,64 @@ $servicegroups->peekAhead($this->compact);
$firstRow = true; $firstRow = true;
foreach ($servicegroups as $s): ?> foreach ($servicegroups as $s): ?>
<?php if ($firstRow): ?> <?php if ($firstRow): ?>
<?php $firstRow = false; ?> <?php $firstRow = false ?>
<table class="groupview action" data-base-target="_next"> <table class="groupview action" data-base-target="_next">
<thead> <thead>
<th><?= $this->translate('Last Problem'); ?></th> <th><?= $this->translate('Last Problem') ?></th>
<th><?= $this->translate('Service Group'); ?></th> <th><?= $this->translate('Service Group') ?></th>
<th><?= $this->translate('Total Services'); ?></th> <th><?= $this->translate('Total Services') ?></th>
<th><?= $this->translate('Service States'); ?></th> <th><?= $this->translate('Service States') ?></th>
</thead> </thead>
<tbody> <tbody>
<?php endif ?> <?php endif ?>
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup_name)); ?>"> <tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup_name)) ?>">
<?php if ($s->services_critical_last_state_change_unhandled): ?> <?php if ($s->services_critical_last_state_change_unhandled): ?>
<td class="state change critical unhandled"> <td class="state change critical unhandled">
<strong><?= $this->translate('CRITICAL'); ?></strong> <strong><?= $this->translate('CRITICAL') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_critical_last_state_change_unhandled); ?> <?= $this->timeSince($s->services_critical_last_state_change_unhandled) ?>
</td> </td>
<?php elseif ($s->services_unknown_last_state_change_unhandled): ?> <?php elseif ($s->services_unknown_last_state_change_unhandled): ?>
<td class="state change unknown unhandled"> <td class="state change unknown unhandled">
<strong><?= $this->translate('UNKNOWN'); ?></strong> <strong><?= $this->translate('UNKNOWN') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_unknown_last_state_change_unhandled); ?> <?= $this->timeSince($s->services_unknown_last_state_change_unhandled) ?>
</td> </td>
<?php elseif ($s->services_warning_last_state_change_unhandled): ?> <?php elseif ($s->services_warning_last_state_change_unhandled): ?>
<td class="state change warning unhandled"> <td class="state change warning unhandled">
<strong><?= $this->translate('WARNING'); ?></strong> <strong><?= $this->translate('WARNING') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_warning_last_state_change_unhandled); ?> <?= $this->timeSince($s->services_warning_last_state_change_unhandled) ?>
</td> </td>
<?php elseif ($s->services_critical_last_state_change_handled): ?> <?php elseif ($s->services_critical_last_state_change_handled): ?>
<td class="state change critical"> <td class="state change critical">
<strong><?= $this->translate('CRITICAL'); ?></strong> <strong><?= $this->translate('CRITICAL') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_critical_last_state_change_handled); ?> <?= $this->timeSince($s->services_critical_last_state_change_handled) ?>
</td> </td>
<?php elseif ($s->services_unknown_last_state_change_handled): ?> <?php elseif ($s->services_unknown_last_state_change_handled): ?>
<td class="state change unknown"> <td class="state change unknown">
<strong><?= $this->translate('UNKNOWN'); ?></strong> <strong><?= $this->translate('UNKNOWN') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_unknown_last_state_change_handled); ?> <?= $this->timeSince($s->services_unknown_last_state_change_handled) ?>
</td> </td>
<?php elseif ($s->services_warning_last_state_change_handled): ?> <?php elseif ($s->services_warning_last_state_change_handled): ?>
<td class="state change warning"> <td class="state change warning">
<strong><?= $this->translate('WARNING'); ?></strong> <strong><?= $this->translate('WARNING') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_warning_last_state_change_handled); ?> <?= $this->timeSince($s->services_warning_last_state_change_handled) ?>
</td> </td>
<?php elseif ($s->services_ok_last_state_change): ?> <?php elseif ($s->services_ok_last_state_change): ?>
<td class="state change ok"> <td class="state change ok">
<strong><?= $this->translate('OK'); ?></strong> <strong><?= $this->translate('OK') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_ok_last_state_change); ?> <?= $this->timeSince($s->services_ok_last_state_change) ?>
</td> </td>
<?php else: ?> <?php else: ?>
<td class="state change pending"> <td class="state change pending">
<strong><?= $this->translate('PENDING'); ?></strong> <strong><?= $this->translate('PENDING') ?></strong>
<br> <br>
<?= $this->timeSince($s->services_pending_last_state_change); ?> <?= $this->timeSince($s->services_pending_last_state_change) ?>
</td> </td>
<?php endif ?> <?php endif ?>
<td class="groupname"> <td class="groupname">
@ -80,10 +80,10 @@ foreach ($servicegroups as $s): ?>
'monitoring/list/services', 'monitoring/list/services',
array('servicegroup_name' => $s->servicegroup_name), array('servicegroup_name' => $s->servicegroup_name),
array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias)) array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias))
); ?> ) ?>
</td> </td>
<td class="total"> <td class="total">
<?= $s->services_total; ?> <?= $s->services_total ?>
</td> </td>
<td> <td>
<?php if ($s->services_ok): ?> <?php if ($s->services_ok): ?>
@ -107,7 +107,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_unhandled): ?> <?php if ($s->services_critical_unhandled): ?>
@ -134,7 +134,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_handled): ?> <?php if ($s->services_critical_handled): ?>
<span class="state critical handled"> <span class="state critical handled">
@ -158,7 +158,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_critical_unhandled): ?> <?php if ($s->services_critical_unhandled): ?>
@ -188,7 +188,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_unknown_handled): ?> <?php if ($s->services_unknown_handled): ?>
<span class="state unknown handled"> <span class="state unknown handled">
@ -212,7 +212,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_unknown_unhandled): ?> <?php if ($s->services_unknown_unhandled): ?>
@ -242,7 +242,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($s->services_warning_handled): ?> <?php if ($s->services_warning_handled): ?>
<span class="state warning handled"> <span class="state warning handled">
@ -266,7 +266,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($s->services_warning_unhandled): ?> <?php if ($s->services_warning_unhandled): ?>
@ -293,7 +293,7 @@ foreach ($servicegroups as $s): ?>
$s->servicegroup_alias $s->servicegroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
</td> </td>
@ -311,9 +311,9 @@ foreach ($servicegroups as $s): ?>
'data-base-target' => '_next', 'data-base-target' => '_next',
'class' => 'pull-right show-more' 'class' => 'pull-right show-more'
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php else: ?> <?php else: ?>
<?= $this->translate('No servicegroups found matching the filter'); ?> <?= $this->translate('No servicegroups found matching the filter') ?>
<?php endif ?> <?php endif ?>
</div> </div>