mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Display count for approved comments only
also add in comment/comments depending on if there is only 1 comment.
This commit is contained in:
parent
d5daef57ff
commit
88bb98785c
@ -4,7 +4,7 @@
|
||||
|
||||
<div class="blogEntry">
|
||||
<h2 class="postTitle">$Title</h2>
|
||||
<p class="authorDate"><% _t('BlogEntry_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogEntry_ss.POSTEDON', 'on') %> $Date.Long | $Comments.Count <% _t('BlogEntry_ss.COMMENTS', 'Comments') %></p>
|
||||
<p class="authorDate"><% _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 %></p>
|
||||
<% if TagsCollection %>
|
||||
<p class="tags">
|
||||
<% _t('BlogEntry_ss.TAGS', 'Tags:') %>
|
||||
|
Loading…
Reference in New Issue
Block a user