% 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 %>