Only display header when not in compact mode

fixes #6508
This commit is contained in:
Matthias Jentsch 2014-07-04 12:18:08 +02:00
parent 0d4166b1bd
commit d2098be625
2 changed files with 23 additions and 17 deletions

View File

@ -1,10 +1,13 @@
<div class="controls">
<?= $this->tabs->render($this); ?> <?php if (!$this->compact): ?>
<div style="margin: 1em" class="dontprint"> <div class="controls">
<?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this); ?> <?= $this->tabs->render($this); ?>
</div> <div style="margin: 1em" class="dontprint">
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?> <?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this); ?>
</div> </div>
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
</div>
<?php endif; ?>
<div class="content"> <div class="content">
<?php if (empty($history)): ?> <?php if (empty($history)): ?>

View File

@ -1,13 +1,16 @@
<div class="controls">
<?= $this->tabs ?> <?php if (!$this->compact): ?>
<div class="dontprint"> <div class="controls">
<?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this) ?> <?= $this->tabs ?>
<?= $this->selectionToolbar('single') ?> <div class="dontprint">
</div> <?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this) ?>
<?= $this->widget('limiter') ?> <?= $this->selectionToolbar('single') ?>
<?php if ($notifications->count() >= 100): ?><br /><?php endif ?> </div>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?> <?= $this->widget('limiter') ?>
</div> <?php if ($notifications->count() >= 100): ?><br /><?php endif ?>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
</div>
<?php endif ?>
<div class="content"> <div class="content">
<?php <?php