ref: master
app/views/profile/_profile_activities_list.html.erb
<% unless activities.nil? %> <% activities.each do |profile_activity| %> <% activity = profile_activity.activity %> <% 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), :offsets => @offsets, :kind => 'wall'}, :update => "profile_activities_page_#{activities.current_page}" %><% end %>