% if can? :create, new_post(receiver) %>
<% if current_subject == receiver %>
<%= select_tag :_relation_ids, options_for_select(current_subject.activity_relations(receiver).sort.map{ |r| [ r.name, r.id ] }), :id => 'security', :multiple => true, :title => t('relation_public.name') %>
<% end %>
<%= submit_tag(t('share'), :class => "button submitActivity", :id => "masterSubmitButton") %>
<% end %>