monitoring: Remove trailing semicolon from inline echo tags in the list/hostgroups view script

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 14:25:52 +02:00
parent 538c1bb42b
commit a053c3a6e3
1 changed files with 33 additions and 33 deletions

View File

@ -3,11 +3,11 @@ use Icinga\Module\Monitoring\Object\Host;
if (! $this->compact): ?> 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">
@ -17,15 +17,15 @@ $hostgroups->peekAhead($this->compact);
$firstRow = true; $firstRow = true;
foreach ($hostgroups as $h): ?> foreach ($hostgroups as $h): ?>
<?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('Host Group'); ?></th> <th><?= $this->translate('Host Group') ?></th>
<th><?= $this->translate('Total Hosts'); ?></th> <th><?= $this->translate('Total Hosts') ?></th>
<th><?= $this->translate('Host States'); ?></th> <th><?= $this->translate('Host States') ?></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 ?>
@ -61,9 +61,9 @@ if ($h->hosts_down_unhandled) {
$this->href('monitoring/list/hosts', array('hostgroup_name' => $h->hostgroup_name)) $this->href('monitoring/list/hosts', array('hostgroup_name' => $h->hostgroup_name))
?>"> ?>">
<td class="state"> <td class="state">
<strong><?= Host::getStateText($state, true); ?></strong> <strong><?= Host::getStateText($state, true) ?></strong>
<br> <br>
<?= $this->timeSince($lastStateChange, $this->compact); ?> <?= $this->timeSince($lastStateChange, $this->compact) ?>
</td> </td>
<td class="groupname"> <td class="groupname">
<?= $this->qlink( <?= $this->qlink(
@ -71,7 +71,7 @@ if ($h->hosts_down_unhandled) {
'monitoring/list/hosts', 'monitoring/list/hosts',
array('hostgroup_name' => $h->hostgroup_name), array('hostgroup_name' => $h->hostgroup_name),
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias)) array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias))
); ?> ) ?>
</td> </td>
<td class="total"> <td class="total">
<?= $this->qlink( <?= $this->qlink(
@ -82,7 +82,7 @@ if ($h->hosts_down_unhandled) {
$this->translate('List all hosts in host group "%s"'), $this->translate('List all hosts in host group "%s"'),
$h->hostgroup_alias $h->hostgroup_alias
)) ))
); ?> ) ?>
</td> </td>
<td> <td>
<?php if ($h->hosts_up): ?> <?php if ($h->hosts_up): ?>
@ -106,7 +106,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->hosts_down_unhandled): ?> <?php if ($h->hosts_down_unhandled): ?>
@ -132,7 +132,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($h->hosts_down_handled): ?> <?php if ($h->hosts_down_handled): ?>
<span class="state critical handled"> <span class="state critical handled">
@ -156,7 +156,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->hosts_down_unhandled): ?> <?php if ($h->hosts_down_unhandled): ?>
@ -185,7 +185,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($h->hosts_unreachable_handled): ?> <?php if ($h->hosts_unreachable_handled): ?>
<span class="state unknown handled"> <span class="state unknown handled">
@ -209,7 +209,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->hosts_unreachable_unhandled): ?> <?php if ($h->hosts_unreachable_unhandled): ?>
@ -236,7 +236,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
</td> </td>
@ -249,7 +249,7 @@ if ($h->hosts_down_unhandled) {
$this->translate('List all services of all hosts in host group "%s"'), $this->translate('List all services of all hosts in host group "%s"'),
$h->hostgroup_alias $h->hostgroup_alias
)) ))
); ?> ) ?>
</td> </td>
<td> <td>
<?php if ($h->services_ok): ?> <?php if ($h->services_ok): ?>
@ -273,7 +273,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->services_critical_unhandled): ?> <?php if ($h->services_critical_unhandled): ?>
@ -300,7 +300,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($h->services_critical_handled): ?> <?php if ($h->services_critical_handled): ?>
<span class="state critical handled"> <span class="state critical handled">
@ -324,7 +324,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->services_critical_unhandled): ?> <?php if ($h->services_critical_unhandled): ?>
@ -354,7 +354,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($h->services_unknown_handled): ?> <?php if ($h->services_unknown_handled): ?>
<span class="state unknown handled"> <span class="state unknown handled">
@ -378,7 +378,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->services_unknown_unhandled): ?> <?php if ($h->services_unknown_unhandled): ?>
@ -408,7 +408,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
<?php endif ?> <?php endif ?>
<?php if ($h->services_warning_handled): ?> <?php if ($h->services_warning_handled): ?>
<span class="state warning handled"> <span class="state warning handled">
@ -432,7 +432,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
<?php if ($h->services_warning_unhandled): ?> <?php if ($h->services_warning_unhandled): ?>
@ -459,7 +459,7 @@ if ($h->hosts_down_unhandled) {
$h->hostgroup_alias $h->hostgroup_alias
) )
) )
); ?> ) ?>
</span> </span>
<?php endif ?> <?php endif ?>
</td> </td>
@ -477,9 +477,9 @@ if ($h->hosts_down_unhandled) {
'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 hostgroups found matching the filter'); ?> <?= $this->translate('No hostgroups found matching the filter') ?>
<?php endif ?> <?php endif ?>
</div> </div>