Sha256: 97ab0b6502e073a35914587337f9ca577af6b22b017f403ef7cbed00a40113d2

Contents?: true

Size: 507 Bytes

Versions: 64

Compression:

Stored size: 507 Bytes

Contents

<%= 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' }", :default => "activity_action.#{ f.object.follow ? 'follow' : 'unfollow' }") %>
<% end %>

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
social_stream-1.1.12 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.11 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.11 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.10 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.10 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.9 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.9 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.8 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.8 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.7 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.7 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.6 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.6 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.5 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.5 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.4 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.4 base/app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.3 base/app/views/activity_actions/_follow_form.html.erb
social_stream-base-1.1.3 app/views/activity_actions/_follow_form.html.erb
social_stream-1.1.2 base/app/views/activity_actions/_follow_form.html.erb