don't condense comments on show pages
This commit is contained in:
parent
3ef5ac5252
commit
460081bc2f
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
%ul.comments{:id => post_id, :class => ("hidden" if comment_hashes.size == 0)}
|
||||
-if comment_hashes.size > 3
|
||||
.older_comments.hidden.inactive
|
||||
.older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)}
|
||||
= render :partial => 'comments/comment', :collection => comment_hashes[0..-4], :as => :hash
|
||||
= render :partial => 'comments/comment', :collection => comment_hashes[-3, 3], :as => :hash
|
||||
-else
|
||||
|
|
|
|||
|
|
@ -30,5 +30,5 @@
|
|||
%span.time= link_to(how_long_ago(post), status_message_path(post))
|
||||
= comment_toggle(comments.length)
|
||||
|
||||
= render "comments/comments", :post_id => post.id, :comment_hashes => comments
|
||||
= render "comments/comments", :post_id => post.id, :comment_hashes => comments, :condensed => true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue