Comment Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
66edf55ca6
commit
b8ac2fccd4
|
@ -17,7 +17,7 @@
|
|||
data-icinga-multiselect-url="/icingaweb2/monitoring/comments/show"
|
||||
data-icinga-multiselect-data="comment_id">
|
||||
<tbody>
|
||||
<?php foreach ($comments as $comment): ?>
|
||||
<?php foreach ($comments->peekAhead($this->compact) as $comment): ?>
|
||||
<tr class="state invalid">
|
||||
<td class="state" style="width: 12em;">
|
||||
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?>
|
||||
|
@ -86,5 +86,15 @@
|
|||
</table>
|
||||
<?php if (! $comments->hasResult()): ?>
|
||||
<?= $this->translate('No comments found matching the filter'); ?>
|
||||
<?php elseif ($comments->hasMore()): ?>
|
||||
<?= $this->qlink(
|
||||
$this->translate('Show More'),
|
||||
$this->url()->without(array('view', 'limit')),
|
||||
null,
|
||||
array(
|
||||
'data-base-target' => '_next',
|
||||
'class' => 'pull-right'
|
||||
)
|
||||
); ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue