35 lines
1.3 KiB
Text
35 lines
1.3 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.message{:data=>{:guid=>post.id}}
|
|
%a{:href => "/people/#{person.id}"}
|
|
%img{:src => image_or_default(person), :class => "avatar", :alt => person.name, :title => person.name, "data-person_id" => person.id}
|
|
|
|
.content
|
|
.from
|
|
%a{:href => "/people/#{person.id}"}=person.name
|
|
|
|
- if person.owner_id == current_user.id
|
|
.aspect
|
|
➔
|
|
%ul
|
|
- if post.public?
|
|
%li= t('the_world')
|
|
- else
|
|
=aspect_links(aspects_with_post(aspects, post))
|
|
|
|
.right
|
|
- reshare_aspects = aspects_without_post(aspects, post)
|
|
- unless reshare_aspects.empty?
|
|
= render 'shared/reshare', :current_user => current_user, :aspects => reshare_aspects, :post => post
|
|
= link_to t('delete'), status_message_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
|
|
|
|
= render 'status_messages/status_message', :post => post, :photos => photos
|
|
|
|
.info
|
|
%span.time= link_to(how_long_ago(post), status_message_path(post))
|
|
|
|
= comment_toggle(comments.length)
|
|
= render "comments/comments", :post_id => post.id, :comment_hashes => comments
|
|
|