anchor.diff: -<% if receiver.activity_ties_for?(current_subject) %>
  +<% if current_subject.activity_ties_to?(receiver) %>
     <% content_for :javascript do %>
   
       securityImage = "<%= escape_javascript(image_tag('btn/btn_security.png', :id => 'security_image', :alt => 'security')) %>";
  
positive.code: 
    <div id="activities_header" class="content_size">
      <%= form_for Post.new(:text => t('activity.input'),
                            :_activity_tie_id => receiver.activity_ties_for(current_subject).first.id),
                            :remote => true  do |f| %>
        <%= f.text_field :text, :id => "input_activities", :size => 85 %>
        <%= f.hidden_field :_activity_tie_id %>
        <!--<div id="activities_share_btn">
          <% if receiver.activity_ties_for(current_subject).count > 1 %>
            <div id="securities">
              <%= f.select :_activity_tie_id, receiver.activity_ties_for(current_subject).sort{ |t, u| t.relation <=> u.relation }.map{ |t| [ t.relation_name, t.id ] }, {}, :id => 'security' %>
            </div>
          <% else %>
            <%= f.hidden_field :_activity_tie_id %>
  
negative.code: </div>
  <% end %><!-- END OF FORM -->
  
  <%= render :partial => 'attachments/new', :locals =>{:a_tie_id => current_subject.activity_ties_to(receiver).first.id} %>
  
  <div id="activities_share_btn">
  <div id="securities"><%= select_tag:_activity_tie_id, options_for_select(current_subject.activity_ties_to(receiver).sort{ |t, u| t.relation <=> u.relation }.map{ |t| [ t.relation_name, t.id ] }), :id => 'security' %></div>
  <%= submit_tag(t('share'), :class => "myButtonBlue", :id => "masterSubmitButton") %>
  </div>
  <% end %>
  