15 lines
704 B
Text
15 lines
704 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.
|
|
- comment = hash[:comment]
|
|
- person = hash[:person]
|
|
%li.comment{:data=>{:guid=>comment.id}}
|
|
%a{:href => "/people/#{person.id}"}
|
|
%img{:src => image_or_default(person), :class => "avatar", :alt => person.name, :title => person.name, "data-person_id" => person.id}
|
|
.content
|
|
.from
|
|
%a{:href => "/people/#{person.id}"}=person.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)
|
|
|