<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>

<%= gravatar @user.mail unless @user.mail.empty? %> <%=h @user.name %>

<%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %>

<% unless @memberships.empty? %>

<%=l(:label_project_plural)%>

<% end %>

<%=l(:label_activity)%>

<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>