From 48c2a690c292e5470b5a8ab7d82d56f9d58fed15 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang
Date: Sat, 23 Jun 2007 14:10:13 +0000
Subject: [PATCH] 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
---
app/views/account/show.rhtml | 2 ++
1 file changed, 2 insertions(+)
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 @@
+<% unless @memberships.empty? %>
<%=l(:label_project_plural)%>
<% for membership in @memberships %>
@@ -19,6 +20,7 @@
(<%= membership.role.name %>, <%= format_date(membership.created_on) %>)
<% end %>
+<% end %>
<%=l(:label_activity)%>
--
2.39.5