don't condense comments on show pages

This commit is contained in:
danielvincent 2010-12-05 17:21:57 -08:00
parent 3ef5ac5252
commit 460081bc2f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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