Sha256: 39a50609259757c6275d525a14e0a9f9c8b1dc0bfea38206ac7d67d8b9581dc1

Contents?: true

Size: 989 Bytes

Versions: 5

Compression:

Stored size: 989 Bytes

Contents

<% if current_user.active_ties_to(receiver).any? %>
  <% content_for :javascript do %>
    $("#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 => current_user.active_ties_to(receiver).first.id),
                          :remote => true  do |f| %>
      <%= f.hidden_field :_activity_tie_id %>
      <%= f.text_field :text, :id => "input_activities", :size => 85 %>
      <div id="activities_share_btn">
        <div id="securities">
          <%= f.select :_activity_tie_id, current_user.active_ties_to(receiver).map{ |t| [ t(t.relation_name, :count => :other), t.id ] }, {}, :id => 'security' %>
        </div>
        <%= image_submit_tag "btn/btn_share.png" %>
      </div>
    <% end -%>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
social_stream-0.2.3 app/views/activities/_new.html.erb
social_stream-0.2.2 app/views/activities/_new.html.erb
social_stream-0.2.1 app/views/activities/_new.html.erb
social_stream-0.2.0 app/views/activities/_new.html.erb
social_stream-0.1.7 app/views/activities/_new.html.erb