<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
<% unless @user.pref.hide_mail %>
- <%=l(:field_mail)%>: <%= mail_to(h(@user.mail)) %>
<% end %>
<% for custom_value in @custom_values %>
<% if !custom_value.value.empty? %>
- <%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %>
<% end %>
<% end %>
- <%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %>
<% unless @user.last_login_on.nil? %>
- <%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %>
<% end %>
<% unless @memberships.empty? %>
<%=l(:label_project_plural)%>
<% for membership in @memberships %>
- <%= link_to(h(membership.project.name), :controller => 'projects', :action => 'show', :id => membership.project) %>
(<%=h membership.role.name %>, <%= format_date(membership.created_on) %>)
<% end %>
<% end %>
<% unless @events_by_day.empty? %>
<%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :user_id => @user, :from => @events_by_day.keys.first %>
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
<% @events_by_day.keys.sort.reverse.each do |day| %>
<%= format_activity_day(day) %>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
-
<%= format_time(e.event_datetime, false) %>
<%= content_tag('span', h(e.project), :class => 'project') %>
<%= link_to format_activity_title(e.event_title), e.event_url %>
- <%= format_activity_description(e.event_description) %>
<% end -%>
<% end -%>
<%= l(:label_export_to) %>
<%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key}, :class => 'feed' %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, :controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
<% end %>
<% end %>
<% html_title @user.name %>