Sha256: 030626371ba019233db514a14ba4635b273af345614259c5685cb82b666347e7

Contents?: true

Size: 1.52 KB

Versions: 4

Compression:

Stored size: 1.52 KB

Contents

<% if can? :create, new_post(receiver) %>
<div id="activities_header" class="content_size">
  <% 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 %>
</div>

<div id="activity_form_select">
  <% SocialStream.activity_forms.each do |element| %>
    <div id="select_<%= element %>" class="activity_form_selector">
      <%= t("#{ element }.form.title") %>
    </div>
  <% end %> 	
</div>

<div id="securities">
  <% 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("activity.privacy.myself.contacts.#{ receiver.class.to_s.underscore }") %>
  <% else %>
    <div id="security_chzn" class="chzn-container chzn-container-multi">
      <ul class="chzn-choices">
        <li class="search-field">
        <input type="text" value="<%= t "activity.privacy.outside.contacts.#{ receiver.class.to_s.underscore }", :receiver => truncate_name(receiver.name,:length => 15) %>" class="default" disabled="disabled">
        </li>
      </ul>
    </div>
  <% end %>
</div>

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.11.7 base/app/views/activities/_new.html.erb
social_stream-base-0.9.21 app/views/activities/_new.html.erb
social_stream-0.11.6 base/app/views/activities/_new.html.erb
social_stream-base-0.9.20 app/views/activities/_new.html.erb