monitoring: Don't use pull-right in the comment overview for the show more link
Further, indent the view script w/ 4 spaces, remove class separated and don't render the table if there are no comments.
This commit is contained in:
parent
668ea95f1a
commit
b3587b7439
|
@ -1,5 +1,5 @@
|
||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
|
@ -11,16 +11,20 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<?php if (! $comments->hasResult()): ?>
|
||||||
|
<p><?= $this->translate('No comments found matching the filter') ?></p>
|
||||||
|
</div>
|
||||||
|
<?php return; endif ?>
|
||||||
<table data-base-target="_next"
|
<table data-base-target="_next"
|
||||||
class="table-row-selectable common-table multiselect"
|
class="table-row-selectable common-table multiselect"
|
||||||
data-icinga-multiselect-url="<?= $this->href('monitoring/comments/show'); ?>"
|
data-icinga-multiselect-url="<?= $this->href('monitoring/comments/show') ?>"
|
||||||
data-icinga-multiselect-related="<?= $this->href("monitoring/comments") ?>"
|
data-icinga-multiselect-related="<?= $this->href("monitoring/comments") ?>"
|
||||||
data-icinga-multiselect-data="comment_id">
|
data-icinga-multiselect-data="comment_id">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($comments->peekAhead($this->compact) as $comment): ?>
|
<?php foreach ($comments->peekAhead($this->compact) as $comment): ?>
|
||||||
<tr href="<?= $this->href('monitoring/comment/show', array('comment_id' => $comment->id)) ?>">
|
<tr href="<?= $this->href('monitoring/comment/show', array('comment_id' => $comment->id)) ?>">
|
||||||
<td class="icon-col">
|
<td class="icon-col">
|
||||||
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?>
|
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->partial(
|
<?= $this->partial(
|
||||||
|
@ -34,17 +38,17 @@
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if (! $comments->hasResult()): ?>
|
<?php if ($comments->hasMore()): ?>
|
||||||
<?= $this->translate('No comments found matching the filter'); ?>
|
<div class="action-links">
|
||||||
<?php elseif ($comments->hasMore()): ?>
|
|
||||||
<?= $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' => 'pull-right action-link'
|
'data-base-target' => '_next'
|
||||||
)
|
)
|
||||||
); ?>
|
) ?>
|
||||||
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue