delete/reshare only if current_user on stream_element

This commit is contained in:
danielvincent 2010-12-12 01:41:54 -08:00
parent f7a7dff53b
commit 2f2f8fef8a

View file

@ -7,11 +7,13 @@
.content
.from
.right
- reshare_aspects = aspects_without_post(aspects, post)
- unless reshare_aspects.empty?
= render 'shared/reshare', :aspects => reshare_aspects, :post => post
= link_to t('delete'), status_message_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
- if person.owner_id == current_user.id
.right
- reshare_aspects = aspects_without_post(aspects, post)
- unless reshare_aspects.empty?
= render 'shared/reshare', :aspects => reshare_aspects, :post => post
= link_to t('delete'), status_message_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
%h4
=person_link(person)