-# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - unless comments_expanded %ul.show_comments{:class => ("hidden" if comments.size <= 3)} %li %b= comment_toggle(comments.size) %ul.comments{:id => post.id, :class => ("hidden" if comments.size == 0 && !comments_expanded)} -if comments.size > 3 .older_comments{:class => ("hidden inactive" unless comments_expanded)} = render :partial => 'comments/comment', :collection => comments[0..-4], :locals => {:post => post} = render :partial => 'comments/comment', :collection => comments[-3, 3], :locals => {:post => post} -else = render :partial => 'comments/comment', :collection => comments, :locals => {:post => post} - unless @commenting_disabled %li.comment.show = new_comment_form(post.id, current_user)