]> source.dussan.org Git - redmine.git/commitdiff
Slight changes to profile on account page and last connexion date added.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 13:42:15 +0000 (13:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 13:42:15 +0000 (13:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2071 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/account/show.rhtml

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