<% unless activities.nil? %> <% activities.each do |a| %> <% activity = a.klass.constantize.find(a.id) %> <% if activity.kind_of?(ActionTracker::Record) %> <%= render :partial => 'profile_activity', :locals => { :activity => activity, :tab_action => 'wall' } if activity.visible? %> <% else %> <%= render :partial => 'profile_scraps', :locals => { :activity => activity, :scrap => activity } %> <% end %> <% end %> <% end %> <% if activities.current_page < activities.total_pages %>
<%= button_to_remote :add, _('View more'), :url => {:action => 'view_more_activities', :page => (activities.current_page + 1)}, :update => "profile_activities_page_#{activities.current_page}" %>
<% end %>