CSS: Wrap show more services in a text-right container

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 11:59:27 +02:00
parent f6efa85079
commit e948e63aa5
1 changed files with 26 additions and 25 deletions

View File

@ -40,10 +40,9 @@ if (! $this->compact): ?>
'host' => $service->host_name,
)
);
$serviceStateName = Service::getStateText($service->service_state);
?>
<tr class="state <?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
<td class="state">
$serviceStateName = Service::getStateText($service->service_state); ?>
<tr>
<td class="state-col state-<?= $serviceStateName ?><?= $service->service_handled ? '-handled' : '' ?>">
<p>
<span class="state-label"><?= Service::getStateText($service->service_state, true) ?></span>
<?php if ((int) $service->service_state !== 99): ?>
@ -100,14 +99,16 @@ if (! $this->compact): ?>
<?php if (! $services->hasResult()): ?>
<?= $this->translate('No services found matching the filter'); ?>
<?php elseif ($services->hasMore()): ?>
<div class="text-right">
<?= $this->qlink(
$this->translate('Show More'),
$this->url()->without(array('view', 'limit')),
null,
array(
'data-base-target' => '_next',
'class' => 'action-link pull-right'
'class' => 'action-link'
)
) ?>
</div>
<?php endif ?>
</div>