-# Copyright (c) 2010-2011, 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.commentable_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{:class => [direction_for(comment.text), 'collapsible']} = markdownify(comment, :oembed => true) .comment_info %time.timeago{:datetime => comment.created_at} = comment.created_at ? timeago(comment.created_at) : timeago(Time.now) .likes .likes_container = render "likes/likes_container", :target_id => comment.id, :likes_count => comment.likes_count, :target_type => "Comment" - unless commenting_disabled?(post) %span.like_action = like_action(comment, current_user)