##// END OF EJS Templates
Don't show "Projects" label if projects list is empty....
Jean-Philippe Lang -
r565:48c2a690c292
parent child
Show More
@@ -1,26 +1,28
1 1 <h2><%= @user.display_name %></h2>
2 2
3 3 <p>
4 4 <%= mail_to @user.mail unless @user.pref.hide_mail %>
5 5 <ul>
6 6 <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
7 7 <% for custom_value in @custom_values %>
8 8 <% if !custom_value.value.empty? %>
9 9 <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
10 10 <% end %>
11 11 <% end %>
12 12 </ul>
13 13 </p>
14 14
15 <% unless @memberships.empty? %>
15 16 <h3><%=l(:label_project_plural)%></h3>
16 17 <ul>
17 18 <% for membership in @memberships %>
18 19 <li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %>
19 20 (<%= membership.role.name %>, <%= format_date(membership.created_on) %>)</li>
20 21 <% end %>
21 22 </ul>
23 <% end %>
22 24
23 25 <h3><%=l(:label_activity)%></h3>
24 26 <p>
25 27 <%=l(:label_reported_issues)%>: <%= Issue.count(["author_id=?", @user.id]) %>
26 28 </p> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now