Sha256: 2a9c4fae6924343b1dc644d5d601b133e5075aa498135638ba8b0f02a8a04470

Contents?: true

Size: 556 Bytes

Versions: 25

Compression:

Stored size: 556 Bytes

Contents

<% if user_signed_in? %>
<%= form_for toggle_follow_action(activity_object),
             :html => { :class => "follow_form-#{ dom_id activity_object }" },
             :remote => true do |f| %>
  <% if f.object.new_record? %>
    <%= f.hidden_field :activity_object_id %>
  <% end %>
  <%= f.hidden_field :follow %>

  <%= f.submit t("#{ activity_object.object_type.underscore }.activity_action.#{ f.object.follow ? 'follow' : 'unfollow' }", class: "btn", :default => "activity_action.#{ f.object.follow ? 'follow' : 'unfollow' }") %>
<% end %>
<% end %>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.2.2 app/views/activity_actions/_follow_form.html.erb
social_stream-2.2.1 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.2.1 app/views/activity_actions/_follow_form.html.erb
social_stream-2.2.0 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.2.0 app/views/activity_actions/_follow_form.html.erb
social_stream-2.1.1 base/app/views/activity_actions/_follow_form.html.erb
social_stream-2.1.0 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.1.0 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.4 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.0.4 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.3 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.0.3 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.2 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.0.2 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.1 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.0.1 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.0 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-2.0.0 app/views/activity_actions/_follow_form.html.erb
social_stream-2.0.0.beta3 base/app/views/activity_actions/_follow_form.html.erb