Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Oct 10, 2011
1 parent 23cce1f commit a94e97c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/comments/_comment.html.erb
@@ -1,6 +1,6 @@
<% @verses.each do |verse| %>
<%# comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment IS NOT NULL', current_user.id, verse.id]) rescue nil%>
<% comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment != ?', current_user.id, verse.id, "NULL" ]) rescue nil%>
<% comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment IS NOT NULL', current_user.id, verse.id]) rescue nil%>
<%# comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment != ?', current_user.id, verse.id, "NULL" ]) rescue nil%>
<% comments.each do |comment| %>
<div id="comment_<%=comment.id.to_s %>" class="notes">
<span class="charge"><%= verse.chapter.to_s + ":" + verse.number.to_s rescue "" %></span> <%# comment.comment rescue ""%>
Expand Down

0 comments on commit a94e97c

Please sign in to comment.