From 2253c15d9be51677d052984ee03c0708444fb138 Mon Sep 17 00:00:00 2001 From: RuthAdele Date: Wed, 23 Oct 2013 10:48:43 +1030 Subject: [PATCH] Display count for approved comments only Also display comment/comments depending on if there is 1 approved comment, or more than 1. --- templates/Includes/BlogSummary.ss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/Includes/BlogSummary.ss b/templates/Includes/BlogSummary.ss index 5e71f31..b37dadb 100644 --- a/templates/Includes/BlogSummary.ss +++ b/templates/Includes/BlogSummary.ss @@ -1,6 +1,6 @@

$MenuTitle

-

<% _t('BlogSummary_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogSummary_ss.POSTEDON', 'on') %> $Date.Long | $Comments.Count <% _t('BlogEntry_ss.COMMENTS', 'Comments') %>

+

<% _t('BlogSummary_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogSummary_ss.POSTEDON', 'on') %> $Date.Long | $ApprovedComments.Count <% if ApprovedComments.Count = 1 %><% _t('BlogEntry_ss.COMMENT', 'Comment') %><% else %><% _t('BlogEntry_ss.COMMENTS', 'Comments') %><% end_if %>

<% if TagsCollection %>

<% _t('BlogSummary_ss.TAGS','Tags') %>: