removed the hide comments button if there are less than 3
This commit is contained in:
parent
8639dc3a77
commit
eb66f18aaa
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue