From 8837632dd9085e07dc3112bdb68e7fd5862623b4 Mon Sep 17 00:00:00 2001 From: Michael Nutt <michael@nuttnet.net> Date: Sun, 6 Mar 2011 22:15:57 -0500 Subject: [PATCH] User should be able to comment on their own photo --- app/views/comments/_comments.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_comments.haml b/app/views/comments/_comments.haml index d6c0c6c4fb..19f3cfa91f 100644 --- a/app/views/comments/_comments.haml +++ b/app/views/comments/_comments.haml @@ -2,14 +2,15 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. +- is_expanded = defined?(always_expanded) && always_expanded -- unless defined?(always_expanded) && always_expanded +- unless is_expanded %ul.show_comments{:class => ("hidden" if comments.size == 0)} %li = image_tag 'icons/spechbubble_2.png', :class => 'more_comments_icon' %b= comment_toggle(comments.size) -%ul.comments{:id => post_id, :class => ("hidden" if comments.size == 0 && !(defined?(always_expanded) && always_expanded))} +%ul.comments{:id => post_id, :class => ("hidden" if comments.size == 0 && !defined?(force_open) && !is_expanded)} -if comments.size > 3 .older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)} = render :partial => 'comments/comment', :collection => comments[0..-4] -- GitLab