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