fixed _comments bug on show pages
This commit is contained in:
parent
7cb9760a1e
commit
9b6d40544c
3 changed files with 8 additions and 6 deletions
|
|
@ -2,10 +2,12 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
%ul.show_comments{:class => ("hidden" if comment_hashes.size == 0)}
|
||||
%li
|
||||
= image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon'
|
||||
%b= comment_toggle(comment_hashes.size)
|
||||
|
||||
- unless defined?(always_expanded) && always_expanded
|
||||
%ul.show_comments{:class => ("hidden" if comment_hashes.size == 0)}
|
||||
%li
|
||||
= image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon'
|
||||
%b= comment_toggle(comment_hashes.size)
|
||||
|
||||
%ul.comments{:id => post_id, :class => ("hidden" if comment_hashes.size == 0)}
|
||||
-if comment_hashes.size > 3
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@
|
|||
|
||||
%ul{:id => 'photo_stream', :class => 'stream show'}
|
||||
%li.message{:data=>{:guid=>@parent.id}}
|
||||
= render "comments/comments", :post_id => @parent.id, :comment_hashes => @comment_hashes
|
||||
= render "comments/comments", :post_id => @parent.id, :comment_hashes => @comment_hashes, :always_expanded => true
|
||||
|
|
|
|||
|
|
@ -28,4 +28,4 @@
|
|||
%h4{:style=>"margin-bottom:5px;"}= t('_comments')
|
||||
%ul{:class => 'stream show', :id => 'status_message_stream'}
|
||||
%li.message{:data=>{:guid=>@status_message.id}}
|
||||
= render "comments/comments", :post_id => @status_message.id, :comment_hashes => @comment_hashes
|
||||
= render "comments/comments", :post_id => @status_message.id, :comment_hashes => @comment_hashes, :always_expanded => true
|
||||
|
|
|
|||
Loading…
Reference in a new issue