<% activities.each do |activity| %>
  • <%= link_to(profile_image(activity.user, :minor), activity.user.url) %>

    <%= time_ago_as_sentence(activity.created_at) + ' ' + _('ago') %>

    <%= link_to activity.user.name, activity.user.url %> <%= describe activity %>

    <%= button_to_remote(:delete, content_tag(:span, _('Remove')), :url =>{:action => 'remove_activity', :activity_id => activity.id}, :update => "profile-activity-item-#{activity.id}") if logged_in? && current_person == @profile %>

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