<% if can? :create, new_post(receiver) %>
<% SocialStream.activity_forms.each do |element| %> <%= render :partial => element.to_s.pluralize+'/new_activity', :locals => { :receiver => receiver } %> <% end %> <%= javascript_tag do %> $(function(){ activate_anti_rebounds(); }); <% end %>
<% SocialStream.activity_forms.each do |element| %>
<%= t("#{ element }.form.title") %>
<% end %>
<% 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 %>