monitoring: Update controls markup in hosts

refs #11145
This commit is contained in:
Eric Lippmann 2016-03-31 09:49:25 +02:00
parent c1dce54b71
commit 107a06df4e

View File

@ -4,14 +4,12 @@ use Icinga\Module\Monitoring\Object\Host;
if (! $this->compact): ?> if (! $this->compact): ?>
<div class="controls"> <div class="controls">
<?= $this->tabs ?> <?= $this->tabs ?>
<div class="grid"> <?= $this->render('list/components/hostssummary.phtml') ?>
<?= $this->render('list/components/hostssummary.phtml') ?> <?= $this->render('list/components/selectioninfo.phtml') ?>
<?= $this->render('list/components/selectioninfo.phtml') ?> <?= $this->paginator ?>
</div> <div class="sort-controls-container">
<div class="grid">
<?= $this->sortBox ?>
<?= $this->limiter ?> <?= $this->limiter ?>
<?= $this->paginator ?> <?= $this->sortBox ?>
</div> </div>
<?= $this->filterEditor ?> <?= $this->filterEditor ?>
</div> </div>
@ -19,7 +17,7 @@ if (! $this->compact): ?>
<div class="content"> <div class="content">
<?php if (! $hosts->hasResult()): ?> <?php if (! $hosts->hasResult()): ?>
<p><?= $this->translate('No hosts found matching the filter.') ?></p> <p><?= $this->translate('No hosts found matching the filter.') ?></p>
</div> </div>
<?php return; endif ?> <?php return; endif ?>
<table data-base-target="_next" <table data-base-target="_next"
class="table-row-selectable state-table multiselect" class="table-row-selectable state-table multiselect"
@ -96,14 +94,14 @@ if (! $this->compact): ?>
</tbody> </tbody>
</table> </table>
<?php if ($hosts->hasMore()): ?> <?php if ($hosts->hasMore()): ?>
<div class="text-right"> <div class="action-links">
<?= $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', 'class' => 'action-link',
'class' => 'action-link' 'data-base-target' => '_next'
) )
) ?> ) ?>
</div> </div>