Skip to content
Extraits de code Groupes Projets
Valider 9707c5a1 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

remove single comment partial for speed in rendering

parent 7d2b46c7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
%li.comment{:data=>{:guid=>comment.id}}
%a{:href => "/people/#{person.id}"}
%img{:src => image_or_default(person), :class => "avatar", :alt => person.real_name, :title => person.real_name, "data-person_id" => person.id}
.content
.from
%a{:href => "/people/#{person.id}"}=person.real_name
= markdownify(comment.text, :youtube_maps => comment[:youtube_titles])
%div.time
= comment.created_at ? "#{time_ago_in_words(comment.created_at)} #{t('ago')}" : time_ago_in_words(Time.now)
......@@ -4,7 +4,18 @@
%ul.comments{:id => post_id, :class => ("hidden" if comment_hashes.size == 0)}
- for comment_hash in comment_hashes
= render 'comments/comment', comment_hash
-comment = comment_hash[:comment]
-person = comment_hash[:person]
%li.comment{:data=>{:guid=>comment.id}}
%a{:href => "/people/#{person.id}"}
%img{:src => image_or_default(person), :class => "avatar", :alt => person.real_name, :title => person.real_name, "data-person_id" => person.id}
.content
.from
%a{:href => "/people/#{person.id}"}=person.real_name
= markdownify(comment.text, :youtube_maps => comment[:youtube_titles])
%div.time
= comment.created_at ? "#{time_ago_in_words(comment.created_at)}" : Time.now
%li.comment.show
= render 'comments/new_comment', :post_id => post_id
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