_status_message.html.haml 873 Bytes
Newer Older
Raphael's avatar
Raphael committed
1
-#   Copyright (c) 2010, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2 3
-#   licensed under the Affero General Public License version 3.  See
-#   the COPYRIGHT file.
4 5


6
%li.message{:id => post.id, :class => ("mine" if current_user.owns?(post))}
7

8
  = person_image_link(post.person)
9

Raphael's avatar
Raphael committed
10 11
  .content
    %span.from
12
      = link_to post.person.real_name, post.person
13
      = post.message
14

15
    .info
16
      %span.time= link_to(how_long_ago(post), object_path(post))
Raphael's avatar
Raphael committed
17
      \--
18
      = link_to "#{t('.show_comments')} (#{post.comments.count})", '#', :class => "show_post_comments"
Daniel Vincent Grippi's avatar
Daniel Vincent Grippi committed
19

20
    = render "comments/comments", :post => post
Daniel Vincent Grippi's avatar
Daniel Vincent Grippi committed
21

22
  - if current_user.owns?(post)
danielvincent's avatar
danielvincent committed
23
    .destroy_link
24
      = link_to t('.delete'), status_message_path(post), :confirm => t('.are_you_sure'), :method => :delete, :remote => true, :class => "delete"
25
      = render "shared/reshare", :post => post, :current_user => current_user