mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
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-url="/icingaweb2/monitoring/comments/show"
|
||||||
data-icinga-multiselect-data="comment_id">
|
data-icinga-multiselect-data="comment_id">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($comments as $comment): ?>
|
<?php foreach ($comments->peekAhead($this->compact) as $comment): ?>
|
||||||
<tr class="state invalid">
|
<tr class="state invalid">
|
||||||
<td class="state" style="width: 12em;">
|
<td class="state" style="width: 12em;">
|
||||||
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?>
|
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?>
|
||||||
@ -86,5 +86,15 @@
|
|||||||
</table>
|
</table>
|
||||||
<?php if (! $comments->hasResult()): ?>
|
<?php if (! $comments->hasResult()): ?>
|
||||||
<?= $this->translate('No comments found matching the filter'); ?>
|
<?= $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 ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user