From f72c8e30fe9f8e0eb3d15468ece7a47456cd27e8 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 27 Aug 2015 23:16:25 +0200 Subject: [PATCH] monitoring: Don't loop more than 5 comments in the comments-header view script What the ... --- .../partials/comment/comments-header.phtml | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/modules/monitoring/application/views/scripts/partials/comment/comments-header.phtml b/modules/monitoring/application/views/scripts/partials/comment/comments-header.phtml index 7e2a5d87c..6d5ba8f88 100644 --- a/modules/monitoring/application/views/scripts/partials/comment/comments-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/comment/comments-header.phtml @@ -1,32 +1,32 @@ - - 5) { - continue; +
+ + $comment): + if ($i > 5) { + break; } - $this->comment = $comment; ?> - - - + + - + +
- render('partials/comment/comment-description.phtml'); ?> - - render('partials/comment/comment-detail.phtml'); ?> - + partial('partials/comment/comment-description.phtml', array('comment' => $comment)) ?> + + partial('partials/comment/comment-detail.phtml', array('comment' => $comment)) ?> +
- +count() > 5): ?>

- 5): ?> qlink( - sprintf($this->translate('show all %d comments'), $i), + sprintf($this->translate('List all %d comments'), $comments->count()), $listAllLink, null, array( - 'icon' => $i > 5 ? 'down-open' : '', - 'data-base-target' => "_next" + 'data-base-target' => '_next', + 'icon' => 'down-open' ) ) ?> -

+