mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
Don't close and re-open php tags, remove unneeded spaces
To close and re-open php tags makes no sense if there's nothing between them
This commit is contained in:
parent
bfc54b7e32
commit
62da942159
@ -73,9 +73,9 @@ class Monitoring_ListController extends Controller
|
|||||||
$stateColumn = 'host_hard_state';
|
$stateColumn = 'host_hard_state';
|
||||||
$stateChangeColumn = 'host_last_hard_state_change';
|
$stateChangeColumn = 'host_last_hard_state_change';
|
||||||
} else {
|
} else {
|
||||||
|
$stateType = 'soft';
|
||||||
$stateColumn = 'host_state';
|
$stateColumn = 'host_state';
|
||||||
$stateChangeColumn = 'host_last_state_change';
|
$stateChangeColumn = 'host_last_state_change';
|
||||||
$stateType = 'soft';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addTitleTab('hosts');
|
$this->addTitleTab('hosts');
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
if (count($groupData) === 0) {
|
if (count($groupData) === 0) {
|
||||||
echo t('No contacts matching the filter');
|
echo t('No contacts matching the filter');
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<?php foreach ($groupData as $groupName => $groupInfo): ?>
|
foreach ($groupData as $groupName => $groupInfo): ?>
|
||||||
<div class="box contactgroup">
|
<div class="box contactgroup">
|
||||||
<h2><?= $groupInfo['alias']; ?></h2>
|
<h2><?= $groupInfo['alias']; ?></h2>
|
||||||
<?php if ($groupInfo['alias'] !== $groupName): ?>
|
<?php if ($groupInfo['alias'] !== $groupName): ?>
|
||||||
@ -31,8 +30,8 @@ if (count($groupData) === 0) {
|
|||||||
<p>
|
<p>
|
||||||
<?php if ($c->contact_email): ?>
|
<?php if ($c->contact_email): ?>
|
||||||
<?= $c->contact_email; ?>
|
<?= $c->contact_email; ?>
|
||||||
<?php endif ?>
|
<?php endif;
|
||||||
<?php if ($c->contact_pager): ?>
|
if ($c->contact_pager): ?>
|
||||||
<br />
|
<br />
|
||||||
<?= $c->contact_pager; ?>
|
<?= $c->contact_pager; ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -16,8 +16,7 @@ $helper = $this->getHelper('CommandForm');
|
|||||||
if (count($downtimes) === 0) {
|
if (count($downtimes) === 0) {
|
||||||
echo t('No downtimes matching the filter');
|
echo t('No downtimes matching the filter');
|
||||||
}
|
}
|
||||||
?>
|
foreach ($this->downtimes as $downtime): ?>
|
||||||
<?php foreach ($this->downtimes as $downtime): ?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->dateFormat()->formatDateTime($downtime->start); ?> -
|
<?= $this->dateFormat()->formatDateTime($downtime->start); ?> -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user