show comment form for post show pages

This commit is contained in:
Maxwell Salzberg 2011-07-29 10:10:22 -07:00
parent 2d9a709212
commit 7a43a812bf

View file

@ -14,5 +14,5 @@
= render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post}
- unless @commenting_disabled
.new_comment_form_wrapper{:class => ('hidden' if post.comments.size == 0)}
.new_comment_form_wrapper{:class => ('hidden' if(post.comments.empty? && request.format !='mobile'))}
= new_comment_form(post.id, current_user)