cirandas.net

ref: master

app/views/profile/friends.html.erb


<%= _("%s's friends") % profile.name %>

<% cache_timeout(profile.friends_cache_key(params), 4.hours) do %>
    <% @friends.each do |friend| %> <%= profile_image_link(friend) %> <% end%>
<%= pagination_links @friends, :param_name => 'npage' %>
<% end %> <%= button_bar do %> <%= button :back, _('Go back'), { :controller => 'profile' } %> <% if user == profile %> <%= button :edit, _('Manage my friends'), :controller => 'friends', :action => 'index', :profile => profile.identifier %> <%= button(:person, _('Invite people'), :controller => 'invite', :action => 'invite_friends') %> <% end %> <% end %>