From 88bb98785cf308d8f646c2bf8cde5fdbc2f9541e Mon Sep 17 00:00:00 2001 From: RuthAdele Date: Wed, 23 Oct 2013 10:46:45 +1030 Subject: [PATCH] Display count for approved comments only also add in comment/comments depending on if there is only 1 comment. --- templates/Layout/BlogEntry.ss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/Layout/BlogEntry.ss b/templates/Layout/BlogEntry.ss index b89b2cc..b03a70b 100644 --- a/templates/Layout/BlogEntry.ss +++ b/templates/Layout/BlogEntry.ss @@ -4,7 +4,7 @@

$Title

-

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

+

<% _t('BlogEntry_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogEntry_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('BlogEntry_ss.TAGS', 'Tags:') %>