aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarek Labos <keraml@gmail.com>2012-08-20 01:38:17 +0200
committerMarek Labos <keraml@gmail.com>2012-08-20 01:38:17 +0200
commit515313438da13faa9555665683d4321fd9bf0d49 (patch)
tree036cfb498122f3cee5730148eda2cf2bd054b618 /app
parent563c8749b8ba79f07d1cb32e0d8ac078b35027fe (diff)
downloadrefinerycms-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.erb14
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 %>