diaspora/app/views/comments/_comment.haml
2011-01-08 13:11:53 -08:00

14 lines
589 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.
%li.comment{:data=>{:guid=>hash[:comment].id}, :class => ("hidden" if(defined? hidden))}
= person_image_link(hash[:person])
.content
.from
= person_link(hash[:person])
= markdownify(hash[:comment].text, :youtube_maps => hash[:comment][:youtube_titles])
.info
%span.time
= hash[:comment].created_at ? t('ago', :time => time_ago_in_words(hash[:comment].created_at)) : time_ago_in_words(Time.now)