]> source.dussan.org Git - redmine.git/commitdiff
Don't show "Projects" label if projects list is empty.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 23 Jun 2007 14:10:13 +0000 (14:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 23 Jun 2007 14:10:13 +0000 (14:10 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@568 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/account/show.rhtml

index cadd807f096eccf42f5742f4e2dd541797dc66d8..80614895dabce9aac20235f91d44a0bae1549d33 100644 (file)
@@ -12,6 +12,7 @@
 </ul>
 </p>
 
+<% unless @memberships.empty? %>
 <h3><%=l(:label_project_plural)%></h3>
 <ul>
 <% for membership in @memberships %>
@@ -19,6 +20,7 @@
     (<%= membership.role.name %>, <%= format_date(membership.created_on) %>)</li>
 <% end %>
 </ul>
+<% end %>
 
 <h3><%=l(:label_activity)%></h3>
 <p>