Don't show "Projects" label if projects list is empty.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@568 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-06-23 14:10:13 +00:00
parent 1a2aee84b2
commit 48c2a690c2
1 changed files with 2 additions and 0 deletions

View 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>