diff options
author | Philip Arndt <parndt@gmail.com> | 2010-11-03 11:18:25 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-11-03 11:18:25 +1300 |
commit | 78b30afd55e1f257fc833dd5c7d8f27e333a3733 (patch) | |
tree | 6179611867c9c4de7cb2d9e9cdb7bd4d6c9f5d71 /app/views | |
parent | ad38c0175852ebf13ecd46967a78f6407676fd56 (diff) | |
download | refinerycms-blog-78b30afd55e1f257fc833dd5c7d8f27e333a3733.tar.gz refinerycms-blog-78b30afd55e1f257fc833dd5c7d8f27e333a3733.tar.bz2 refinerycms-blog-78b30afd55e1f257fc833dd5c7d8f27e333a3733.zip |
Only show the approved comment count.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/blog/shared/_post.html.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb index 1e047ae..bb9b8b9 100644 --- a/app/views/blog/shared/_post.html.erb +++ b/app/views/blog/shared/_post.html.erb @@ -7,17 +7,17 @@ </p> </header> <section class='clearfix'> - <%= truncate(post.body, - :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250), + <%= truncate(post.body, + :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250), :preserve_html_tags => true) %> </section> <footer> - <p> + <p> <%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %> - + <span class='comment_count'> <% if post.comments.any? %> - (<%= pluralize(post.comments.count, t('blog.shared.comments.singular')) %>) + (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>) <% else %> (<%= t('blog.shared.comments.none') %>) <% end %> |