Permalink
Browse files

Check for approved comments, not any. It will still show the title wi…

…th 0 comments if there're unmoderated ones in the queue.
  • Loading branch information...
joemsak committed Jul 23, 2010
1 parent 5081a8b commit 776e0a6254f8a233c354ceb0128a9bf82cf9a2ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/blogs/_comments.html.erb
@@ -1,4 +1,4 @@
-<% unless @blog.comments.empty? %>
+<% unless @blog.comments.approved.empty? %>
<h2>Comments</h2>
<div id="comments">
<% @blog.comments.approved.each do |comment| %>

0 comments on commit 776e0a6

Please sign in to comment.