show comment form for post show pages
This commit is contained in:
parent
2d9a709212
commit
7a43a812bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue