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

View File

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