2008-08-12 00:55:17 +04:00
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
|
|
|
|
</div>
|
|
|
|
|
2010-01-08 00:28:45 +03:00
|
|
|
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-11-30 14:18:22 +03:00
|
|
|
<div class="splitcontentleft">
|
2007-03-12 20:59:02 +03:00
|
|
|
<ul>
|
2008-11-30 16:42:15 +03:00
|
|
|
<% unless @user.pref.hide_mail %>
|
2008-11-30 17:23:57 +03:00
|
|
|
<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
|
2008-11-30 16:42:15 +03:00
|
|
|
<% end %>
|
|
|
|
<% for custom_value in @custom_values %>
|
2009-09-20 13:56:06 +04:00
|
|
|
<% if !custom_value.value.blank? %>
|
2009-05-12 23:08:04 +04:00
|
|
|
<li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
|
2008-11-30 16:42:15 +03:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
|
|
|
|
<% unless @user.last_login_on.nil? %>
|
|
|
|
<li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</ul>
|
|
|
|
|
2007-06-23 18:10:13 +04:00
|
|
|
<% unless @memberships.empty? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<h3><%=l(:label_project_plural)%></h3>
|
2007-06-23 18:06:21 +04:00
|
|
|
<ul>
|
|
|
|
<% for membership in @memberships %>
|
2010-08-19 08:32:06 +04:00
|
|
|
<li><%= link_to_project(membership.project) %>
|
2009-05-12 23:06:45 +04:00
|
|
|
(<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2007-06-23 18:06:21 +04:00
|
|
|
</ul>
|
2007-06-23 18:10:13 +04:00
|
|
|
<% end %>
|
2009-05-31 02:09:49 +04:00
|
|
|
<%= call_hook :view_account_left_bottom, :user => @user %>
|
2008-11-30 14:18:22 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-11-30 14:18:22 +03:00
|
|
|
<% unless @events_by_day.empty? %>
|
2009-02-27 15:08:52 +03:00
|
|
|
<h3><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3>
|
2008-11-30 14:18:22 +03:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<p>
|
2007-08-29 21:25:22 +04:00
|
|
|
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
|
2008-10-31 03:41:28 +03:00
|
|
|
</p>
|
2008-11-30 14:18:22 +03:00
|
|
|
|
|
|
|
<div id="activity">
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
<h4><%= format_activity_day(day) %></h4>
|
|
|
|
<dl>
|
|
|
|
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
|
|
|
|
<dt class="<%= e.event_type %>">
|
|
|
|
<span class="time"><%= format_time(e.event_datetime, false) %></span>
|
|
|
|
<%= content_tag('span', h(e.project), :class => 'project') %>
|
|
|
|
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>
|
|
|
|
<dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
|
|
|
|
<% end -%>
|
|
|
|
</dl>
|
|
|
|
<% end -%>
|
|
|
|
</div>
|
2008-11-30 15:18:59 +03:00
|
|
|
|
2009-01-29 16:53:17 +03:00
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
<%= f.link_to 'Atom', :url => {:controller => 'projects', :action => 'activity', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
|
|
|
|
<% end %>
|
2008-11-30 15:18:59 +03:00
|
|
|
|
|
|
|
<% 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 %>
|
2008-11-30 14:18:22 +03:00
|
|
|
<% end %>
|
2009-05-31 02:09:49 +04:00
|
|
|
<%= call_hook :view_account_right_bottom, :user => @user %>
|
2008-11-30 14:18:22 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% html_title @user.name %>
|