summaryrefslogtreecommitdiffstats
path: root/app/views/account
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-23 14:10:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-23 14:10:13 +0000
commit48c2a690c292e5470b5a8ab7d82d56f9d58fed15 (patch)
tree15a1f5439f13f905287e48129b000936063823bf /app/views/account
parent1a2aee84b21a90ea0b0658520e3b93e6085c8eea (diff)
downloadredmine-48c2a690c292e5470b5a8ab7d82d56f9d58fed15.tar.gz
redmine-48c2a690c292e5470b5a8ab7d82d56f9d58fed15.zip
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
Diffstat (limited to 'app/views/account')
-rw-r--r--app/views/account/show.rhtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml
index cadd807f0..80614895d 100644
--- a/app/views/account/show.rhtml
+++ b/app/views/account/show.rhtml
@@ -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>