<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? && @user.logged? %>

<%= avatar @user, :size => "50" %> <%= @user.name %>

<%=l(:label_issue_plural)%>

<% assigned_to_ids = ([@user.id] + @user.group_ids).join("|") %> <% sort_cond = 'priority:desc,updated_on:desc' %>
<%=l(:label_open_issues_plural)%> <%=l(:label_closed_issues_plural)%> <%=l(:label_total)%>
<%= link_to l(:label_assigned_issues), issues_path(:set_filter => 1, :assigned_to_id => assigned_to_ids, :sort => sort_cond) %> <%= link_to @issue_counts[:assigned][:open], issues_path(:set_filter => 1, :assigned_to_id => assigned_to_ids, :sort => sort_cond) %> <%= link_to @issue_counts[:assigned][:total] - @issue_counts[:assigned][:open], issues_path(:set_filter => 1, :status_id => 'c', :assigned_to_id => assigned_to_ids, :sort => sort_cond) %> <%= link_to @issue_counts[:assigned][:total], issues_path(:set_filter => 1, :status_id => '*', :assigned_to_id => assigned_to_ids, :sort => sort_cond) %>
<%= link_to l(:label_reported_issues), issues_path(:set_filter => 1, :author_id => @user.id, :sort => sort_cond) %> <%= link_to @issue_counts[:reported][:open], issues_path(:set_filter => 1, :author_id => @user.id, :sort => sort_cond) %> <%= link_to @issue_counts[:reported][:total] - @issue_counts[:reported][:open], issues_path(:set_filter => 1, :status_id => 'c', :author_id => @user.id, :sort => sort_cond) %> <%= link_to @issue_counts[:reported][:total], issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id, :sort => sort_cond) %>
<% unless @memberships.empty? %>

<%=l(:label_project_plural)%>

<% memberships_by_project = @memberships.group_by(&:project) %> <% project_tree(memberships_by_project.keys, :init_level => true) do |project, level| %> <% membership = memberships_by_project[project].first %> "> <% end %>
<%=l(:label_project)%> <%=l(:label_role_plural)%> <%=l(:label_registered_on)%>
<%= link_to_project(project) %> <%= membership.roles.sort.collect(&:to_s).join(', ') %> <%= format_date(membership.created_on) %>
<% end %> <% if (User.current == @user || User.current.admin?) && @user.groups.any? %>

<%=l(:label_group_plural)%>

    <% for group in @user.groups %>
  • <%= link_to_group(group) %> <% end %>
<% end %> <%= call_hook :view_account_left_bottom, :user => @user %>
<% unless @events_by_day.empty? %>

<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>

<%= render :partial => 'activities/activities', :locals => {:events_by_day => @events_by_day} %> <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.atom_key} %> <% end %> <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.atom_key) %> <% end %> <% end %> <%= call_hook :view_account_right_bottom, :user => @user %>
<% html_title @user.name %>