mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Display count for approved comments only
Also display comment/comments depending on if there is 1 approved comment, or more than 1.
This commit is contained in:
parent
88bb98785c
commit
2253c15d9b
@ -1,6 +1,6 @@
|
||||
<div class="blogSummary">
|
||||
<h2 class="postTitle"><a href="$Link" title="<% _t('BlogSummary_ss.VIEWFULL', 'View full post titled -') %> '$Title'">$MenuTitle</a></h2>
|
||||
<p class="authorDate"><% _t('BlogSummary_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogSummary_ss.POSTEDON', 'on') %> $Date.Long | <a href="$Link#PageComments_holder" title="View Comments Posted">$Comments.Count <% _t('BlogEntry_ss.COMMENTS', 'Comments') %></a></p>
|
||||
<p class="authorDate"><% _t('BlogSummary_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogSummary_ss.POSTEDON', 'on') %> $Date.Long | <a href="$Link#PageComments_holder" title="View Comments Posted">$ApprovedComments.Count <% if ApprovedComments.Count = 1 %><% _t('BlogEntry_ss.COMMENT', 'Comment') %><% else %><% _t('BlogEntry_ss.COMMENTS', 'Comments') %><% end_if %></a></p>
|
||||
<% if TagsCollection %>
|
||||
<p class="tags">
|
||||
<% _t('BlogSummary_ss.TAGS','Tags') %>:
|
||||
|
Loading…
Reference in New Issue
Block a user