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>
|
|
|
|
|
2008-11-09 17:52:16 +03:00
|
|
|
<h2><%= avatar @user %> <%=h @user.name %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<p>
|
2008-07-02 21:27:16 +04:00
|
|
|
<%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<ul>
|
|
|
|
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
|
|
|
|
<% for custom_value in @custom_values %>
|
|
|
|
<% if !custom_value.value.empty? %>
|
|
|
|
<li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
|
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 %>
|
2008-07-02 21:27:16 +04:00
|
|
|
<li><%= link_to(h(membership.project.name), :controller => 'projects', :action => 'show', :id => membership.project) %>
|
|
|
|
(<%=h membership.role.name %>, <%= 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 %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<h3><%=l(:label_activity)%></h3>
|
|
|
|
<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>
|