Skip to content
Extraits de code Groupes Projets
Valider 8837632d rédigé par Michael Nutt's avatar Michael Nutt
Parcourir les fichiers

User should be able to comment on their own photo

parent 8c562115
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# 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)} %ul.show_comments{:class => ("hidden" if comments.size == 0)}
%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)
%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 -if comments.size > 3
.older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)} .older_comments{:class => ("hidden inactive" if defined?(condensed) && condensed)}
= render :partial => 'comments/comment', :collection => comments[0..-4] = render :partial => 'comments/comment', :collection => comments[0..-4]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter