16 lines
734 B
Text
16 lines
734 B
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
%ul.comments{:id => post_id, :class => ("hidden" if comment_hashes.size == 0)}
|
|
-if comment_hashes.size > 3
|
|
.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
|
|
= render :partial => 'comments/comment', :collection => comment_hashes, :as => :hash
|
|
|
|
- unless @commenting_disabled
|
|
%li.comment.show
|
|
= new_comment_form(post_id)
|
|
|