re-enable commenting box on show page without comments, but it looks kind of ugly

This commit is contained in:
Raphael Sofaer 2011-03-07 10:18:50 -08:00
parent 909a198380
commit a45f46828a
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
= image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon'
%b= comment_toggle(comments.size)
%ul.comments{:id => post_id, :class => ("hidden" if comments.size == 0 && !defined?(force_open))}
%ul.comments{:id => post_id, :class => ("hidden" if comments.size == 0 && !(defined?(always_expanded) && always_expanded))}
-if comments.size > 3
.older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)}
= render :partial => 'comments/comment', :collection => comments[0..-4]

View file

@ -20,4 +20,4 @@
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure'), :method => :delete
.stream.show{:data=>{:guid=>@status_message.id}}
= render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments, :always_expanded => true, :force_open => true
= render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments, :always_expanded => true