% if User.current.admin? %>
<%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %> | <%= h(user.firstname) %> | <%= h(user.lastname) %> | <%= mail_to(h(user.mail)) %> | <%= checked_image user.admin? %> | <%= format_time(user.created_on) %> | <%= format_time(user.last_login_on) unless user.last_login_on.nil? %> | <%= change_status_link(user) %> <%= delete_link user_path(user, :back_url => users_path(params)) unless User.current == user %> |
<% unless user.memberships.empty? %> <%= l(:label_contribute_to, :project_count => "#{user.memberships.count}") %> <% for member in user.memberships %> <%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %> <% end %> <% end %> <%= user.changesets.count == 0 ? '' : ",#{l(:label_total_commit, :total_commit => user.changesets.count)}" %>