show.rhtml
31 lines
| 1023 B
| text/html+ruby
|
RhtmlLexer
|
r1732 | <div class="contextual"> | |
<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %> | |||
</div> | |||
|
r575 | <h2><%=h @user.name %></h2> | |
|
r330 | ||
<p> | |||
|
r1598 | <%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %> | |
|
r330 | <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> | |||
|
r565 | <% unless @memberships.empty? %> | |
|
r330 | <h3><%=l(:label_project_plural)%></h3> | |
|
r564 | <ul> | |
<% for membership in @memberships %> | |||
|
r1598 | <li><%= link_to(h(membership.project.name), :controller => 'projects', :action => 'show', :id => membership.project) %> | |
(<%=h membership.role.name %>, <%= format_date(membership.created_on) %>)</li> | |||
|
r330 | <% end %> | |
|
r564 | </ul> | |
|
r565 | <% end %> | |
|
r330 | ||
<h3><%=l(:label_activity)%></h3> | |||
<p> | |||
|
r665 | <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> | |
|
r2 | </p> |