re-enable commenting box on show page without comments, but it looks kind of ugly
This commit is contained in:
parent
909a198380
commit
a45f46828a
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
= image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon'
|
= image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon'
|
||||||
%b= comment_toggle(comments.size)
|
%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
|
-if comments.size > 3
|
||||||
.older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)}
|
.older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)}
|
||||||
= render :partial => 'comments/comment', :collection => comments[0..-4]
|
= render :partial => 'comments/comment', :collection => comments[0..-4]
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@
|
||||||
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure'), :method => :delete
|
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure'), :method => :delete
|
||||||
|
|
||||||
.stream.show{:data=>{:guid=>@status_message.id}}
|
.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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue