monitoring/CSS: Don't use clearfix and pull-right in the services overview

refs #5543
This commit is contained in:
Eric Lippmann 2015-10-28 10:18:53 +01:00
parent a3caae6595
commit 2702e70a9c

View File

@ -45,49 +45,49 @@ if (! $this->compact): ?>
$serviceStateName = Service::getStateText($service->service_state); ?> $serviceStateName = Service::getStateText($service->service_state); ?>
<tr> <tr>
<td class="state-col state-<?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>"> <td class="state-col state-<?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
<p> <span class="state-label"><?= Service::getStateText($service->service_state, true) ?></span>
<span class="state-label"><?= Service::getStateText($service->service_state, true) ?></span> <?php if ((int) $service->service_state !== 99): ?>
<?php if ((int) $service->service_state !== 99): ?> <div class="state-meta">
<br>
<?= $this->timeSince($service->service_last_state_change, $this->compact) ?> <?= $this->timeSince($service->service_last_state_change, $this->compact) ?>
<?php if ((int) $service->service_state > 0 && (int) $service->service_state_type === 0): ?> <?php if ((int) $service->service_state > 0 && (int) $service->service_state_type === 0): ?>
<br> <div><?= $this->translate('Soft', 'Soft state') ?> <?= $service->service_attempt ?></div>
<span class="text-small"><?= $this->translate('Soft', 'Soft state') ?> <?= $service->service_attempt ?></span>
<?php endif ?> <?php endif ?>
<?php endif ?> </div>
</p> <?php endif ?>
</td> </td>
<td class="clearfix"> <td>
<?= $this->iconImage()->service($service) ?> <div class="state-header">
<span class="pull-right"><?= implode(' ', $this->serviceFlags($service)) ?></span> <?= $this->iconImage()->service($service) ?>
<?php if ($this->showHost): ?><?= $this->qlink( <?php if ($this->showHost): ?><?= $this->qlink(
$service->host_display_name $service->host_display_name
. ($service->host_state != 0 ? ' (' . Host::getStateText($service->host_state, true) . ')' : ''), . ($service->host_state != 0 ? ' (' . Host::getStateText($service->host_state, true) . ')' : ''),
$hostLink, $hostLink,
null, null,
array( array(
'title' => sprintf( 'title' => sprintf(
$this->translate('Show detailed information for host %s'), $this->translate('Show detailed information for host %s'),
$service->host_display_name $service->host_display_name
)
) )
) ) ?>:
) ?>: <?php endif ?><?= $this->qlink(
<?php endif ?><?= $this->qlink( $service->service_display_name,
$service->service_display_name, $serviceLink,
$serviceLink, null,
null, array(
array( 'title' => sprintf(
'title' => sprintf( $this->translate('Show detailed information for service %s on host %s'),
$this->translate('Show detailed information for service %s on host %s'), $service->service_display_name,
$service->service_display_name, $service->host_display_name
$service->host_display_name ),
), 'class' => 'rowaction'
'class' => 'rowaction' )
) ) ?>
) ?><br /> <span class="state-icons"><?= implode(' ', $this->serviceFlags($service)) ?></span>
<div class="sparkline-box"><?= $this->perfdata($service->service_perfdata, true, 5) ?> </div> </div>
<p class="plugin-output"> <div class="sparkline-box"><?= $this->perfdata($service->service_perfdata, true, 5) ?></div>
<p class="overview-plugin-output">
<?= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?> <?= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?>
</p> </p>
</td> </td>