Sha256: 70ddea16dd9be0efd17e1fdc8493ea6616d4f0abd33c4032f3a440683450b88c

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

<% if receiver.activity_ties_for?(current_subject) %>
  <% content_for :javascript do %>

    securityImage = "<%= escape_javascript(image_tag('btn/btn_security.png', :id => 'security_image', :alt => 'security')) %>";
    downImage = "<%= escape_javascript(image_tag('btn/btn_down.png')) %>";

    $("#security").dropdownchecklist( { closeRadioOnClick: true } );
    $("#security_image").parent().width(28);
    $("#security_image").parent().parent().width(28);
  <% end %>

  <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 %>
      <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 %>
        <% end %>
        <%= f.submit t('share'), :class =>"myButtonBlue" %>
      </div>
    <% end -%>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
social_stream-base-0.5.2 app/views/activities/_new.html.erb
social_stream-base-0.5.1 app/views/activities/_new.html.erb
social_stream-base-0.5.0 app/views/activities/_new.html.erb
social_stream-0.4.6 app/views/activities/_new.html.erb
social_stream-0.4.5 app/views/activities/_new.html.erb
social_stream-0.4.4 app/views/activities/_new.html.erb