Slight changes to profile on account page and last connexion date added.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2071 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-11-30 13:42:15 +00:00
parent 0399b85ab6
commit dfc7a94578
1 changed files with 11 additions and 8 deletions

View File

@ -5,17 +5,20 @@
<h2><%= avatar @user %> <%=h @user.name %></h2> <h2><%= avatar @user %> <%=h @user.name %></h2>
<div class="splitcontentleft"> <div class="splitcontentleft">
<p>
<%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %>
<ul> <ul>
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> <% unless @user.pref.hide_mail %>
<% for custom_value in @custom_values %> <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail)) %></li>
<% if !custom_value.value.empty? %> <% end %>
<% for custom_value in @custom_values %>
<% if !custom_value.value.empty? %>
<li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
<% end %> <% end %>
<% 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 %>
</ul> </ul>
</p>
<% unless @memberships.empty? %> <% unless @memberships.empty? %>
<h3><%=l(:label_project_plural)%></h3> <h3><%=l(:label_project_plural)%></h3>