% network_activities.each do |activity| %> <%= render :partial => 'profile_activity', :locals => { :activity => activity, :tab_action => 'network' } if activity.visible? %> <% end %> <% if network_activities.current_page < network_activities.total_pages %>