<% network_activities.each do |activity| %>
  • <%= link_to(profile_image(activity.user, :minor), activity.user.url) %> <% if logged_in? && current_person.follows?(activity.user) && current_person != activity.user %>

    <%= link_to_function _('Scrap'), "hide_and_show(['#profile-network-message-response-#{activity.id}'],['#profile-network-message-#{activity.id}', '#profile-network-form-#{activity.id}']);$('content_#{activity.id}').value='';return false", :class => "profile-send-message", :title => _("Send a message to %s") % activity.user.name %>

    <% end %>

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

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

    <%= _('In community %s') % link_to(activity.target.name, activity.target.url) if !profile.is_a?(Community) && activity.target.is_a?(Community) %>


  • <% end %> <% if network_activities.current_page < network_activities.total_pages %>
    <%= button_to_remote :add, _('View more'), :url => {:action => 'view_more_network_activities', :page => (network_activities.current_page + 1)}, :update => "profile_network_activities_page_#{network_activities.current_page}" %>
    <% end %>