diff options
author | Marek Labos <keraml@gmail.com> | 2012-08-20 01:38:17 +0200 |
---|---|---|
committer | Marek Labos <keraml@gmail.com> | 2012-08-20 01:38:17 +0200 |
commit | 515313438da13faa9555665683d4321fd9bf0d49 (patch) | |
tree | 036cfb498122f3cee5730148eda2cf2bd054b618 /app | |
parent | 563c8749b8ba79f07d1cb32e0d8ac078b35027fe (diff) | |
download | refinerycms-blog-515313438da13faa9555665683d4321fd9bf0d49.tar.gz refinerycms-blog-515313438da13faa9555665683d4321fd9bf0d49.tar.bz2 refinerycms-blog-515313438da13faa9555665683d4321fd9bf0d49.zip |
rewrite comments count msg + add link to comments section
Diffstat (limited to 'app')
-rw-r--r-- | app/views/refinery/blog/shared/_post.html.erb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/views/refinery/blog/shared/_post.html.erb b/app/views/refinery/blog/shared/_post.html.erb index 40ae70b..532d48f 100644 --- a/app/views/refinery/blog/shared/_post.html.erb +++ b/app/views/refinery/blog/shared/_post.html.erb @@ -34,15 +34,11 @@ <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) %> <% end %> </p> - <aside class='comment_count'> - <% if Refinery::Blog::Post.comments_allowed? %> - <% if post.comments.any? %> - (<%= pluralize(post.comments.approved.count, t('singular', :scope => 'refinery.blog.shared.comments')) %>) - <% else %> - (<%= t('none', :scope => 'refinery.blog.shared.comments') %>) - <% end %> - <% end %> - </aside> + <% if Refinery::Blog::Post.comments_allowed? %> + <aside class='comment_count'> + <%= link_to "#{t('title', :scope => 'refinery.blog.posts.show.comments')} (#{post.comments.approved.count})", refinery.blog_post_path(post) << '#comments' %> + </aside> + <% end %> </footer> </article> <% end %> |