diaspora/app/views/comments/_comment.mobile.haml
2015-07-03 15:31:29 +02:00

23 lines
948 B
Text

-# 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{data:{guid:comment.id}, class: ("hidden" if(defined? hidden))}
.content
.media
.media-left
= person_image_link(comment.author, size: :thumb_small, class: "media-object")
.media-body
.from.pull-left
= person_link(comment.author)
.info
%span
= timeago(comment.created_at ? comment.created_at : Time.now)
.remove_comment
.pull-right
- if user_signed_in? && comment.author == current_user.person
= link_to(raw("<i class='entypo-trash'></i>"), comment_path(comment), method: :delete,
data: { confirm: "#{t('are_you_sure')}" }, class: "remove")
%div{class: direction_for(comment.text)}
= comment.message.markdownified