Sha256: 01cec2d6e0d115cff4d7f334a8ecab0b998fa5d1d2d48e6b34e18f50aaa2887e

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

<% if can? :create, new_activity(receiver) %>
  <% 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, forceMultiple: false } );
    $("#security_image").parent().width(28);
    $("#security_image").parent().parent().width(28);
  <% end %>

<div id="activities_header" class="content_size">
  <% SocialStream.activity_forms.each do |element| %>
    <%= render :partial => element.to_s.pluralize+'/new',
               :locals  => {
                             :receiver => receiver
                           } %>
  <% end %>
</div>

<div id="activities_share_btn">
<% if current_subject == receiver %>
  <div id="securities"><%= select_tag :_relation_ids, options_for_select(current_subject.activity_relations(receiver).sort.map{ |r| [ r.name, r.id ] }), :id => 'security', :multiple => nil %></div>
<% end %>

  <%= submit_tag(t('share'), :class => "myButtonBlue", :id => "masterSubmitButton") %>
</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
social_stream-base-0.6.8 app/views/activities/_new.html.erb
social_stream-base-0.6.6 app/views/activities/_new.html.erb
social_stream-base-0.6.5 app/views/activities/_new.html.erb