From b3587b74393f9bc7dba721165c16c3a2e1b17d8e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 20 Nov 2015 15:14:54 +0100 Subject: [PATCH] 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. --- .../views/scripts/list/comments.phtml | 68 ++++++++++--------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index b98bdd3a0..ad104e156 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -1,5 +1,5 @@ compact): ?> -
+
render('list/components/selectioninfo.phtml') ?>
@@ -11,40 +11,44 @@
- " - data-icinga-multiselect-data="comment_id"> +hasResult()): ?> +

translate('No comments found matching the filter') ?>

+ + +
" + data-icinga-multiselect-data="comment_id"> peekAhead($this->compact) as $comment): ?> - - - - + + + + -
- partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?> - - partial( - 'partials/comment/comment-detail.phtml', - array( - 'comment' => $comment, - 'delCommentForm' => $delCommentForm // Form is unset if the current user lacks the respective permission - )) ?> -
+ partial('partials/comment/comment-description.phtml', array('comment' => $comment)) ?> + + partial( + 'partials/comment/comment-detail.phtml', + array( + 'comment' => $comment, + 'delCommentForm' => $delCommentForm // Form is unset if the current user lacks the respective permission + )) ?> +
-hasResult()): ?> - translate('No comments found matching the filter'); ?> -hasMore()): ?> - qlink( - $this->translate('Show More'), - $this->url()->without(array('view', 'limit')), - null, - array( - 'data-base-target' => '_next', - 'class' => 'pull-right action-link' - ) - ); ?> + +hasMore()): ?> +