delete/reshare only if current_user on stream_element
This commit is contained in:
parent
f7a7dff53b
commit
2f2f8fef8a
1 changed files with 7 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue