29 lines
1.2 KiB
Text
29 lines
1.2 KiB
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.posted{:id => comment.guid, :class => ("hidden" if(defined? hidden))}
|
||
- if current_user && (current_user.owns?(comment) || current_user.owns?(post))
|
||
.right.controls
|
||
= link_to image_tag('deletelabel.png'), post_comment_path(comment.post_id, comment), :class => "delete comment_delete", :title => t('delete')
|
||
= person_image_link(comment.author, :size => :thumb_small)
|
||
.content
|
||
%span.from
|
||
= person_link(comment.author, :class => "hovercardable")
|
||
%span.details
|
||
–
|
||
|
||
%span{:class => direction_for(comment.text)}
|
||
= markdownify(comment, :youtube_maps => comment.youtube_titles)
|
||
|
||
.comment_info
|
||
%time.timeago{:datetime => comment.created_at}
|
||
= comment.created_at ? timeago(comment.created_at) : timeago(Time.now)
|
||
|
||
.likes
|
||
= render "likes/likes_container", :target_id => comment.id, :likes_count => comment.likes_count, :target_type => "Comment"
|
||
|
||
- unless !user_signed_in? || @commenting_disabled
|
||
%span.like_action
|
||
= like_action(comment, current_user)
|
||
|