Skip to content

Commit

Permalink
rewrite comments count msg + add link to comments section
Browse files Browse the repository at this point in the history
  • Loading branch information
keram committed Aug 19, 2012
1 parent 563c874 commit 5153134
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions app/views/refinery/blog/shared/_post.html.erb
Expand Up @@ -34,15 +34,11 @@
<%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) %> <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) %>
<% end %> <% end %>
</p> </p>
<aside class='comment_count'> <% if Refinery::Blog::Post.comments_allowed? %>
<% if Refinery::Blog::Post.comments_allowed? %> <aside class='comment_count'>
<% if post.comments.any? %> <%= link_to "#{t('title', :scope => 'refinery.blog.posts.show.comments')} (#{post.comments.approved.count})", refinery.blog_post_path(post) << '#comments' %>
(<%= pluralize(post.comments.approved.count, t('singular', :scope => 'refinery.blog.shared.comments')) %>) </aside>
<% else %> <% end %>
(<%= t('none', :scope => 'refinery.blog.shared.comments') %>)
<% end %>
<% end %>
</aside>
</footer> </footer>
</article> </article>
<% end %> <% end %>

0 comments on commit 5153134

Please sign in to comment.