removed the hide comments button if there are less than 3

This commit is contained in:
zhitomirskiyi 2011-04-04 00:15:22 -07:00
parent 8639dc3a77
commit eb66f18aaa

View file

@ -5,7 +5,7 @@
- is_expanded = defined?(always_expanded) && always_expanded - is_expanded = defined?(always_expanded) && always_expanded
- unless is_expanded - unless is_expanded
%ul.show_comments{:class => ("hidden" if comments.size == 0)} %ul.show_comments{:class => ("hidden" unless comments.size > 3)}
%li %li
= 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)