diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-01 13:01:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-01 13:01:23 +0000 |
commit | f705b889d9d20086094939b1e7060bf49bd01f2b (patch) | |
tree | cfc85240bba75fca5d268881479b866f278ed29f /app/views/welcome | |
parent | 2d11265ec5e1696769bbd0f115cc14d2461c588f (diff) | |
download | redmine-f705b889d9d20086094939b1e7060bf49bd01f2b.tar.gz redmine-f705b889d9d20086094939b1e7060bf49bd01f2b.zip |
Hide the 'Latest projects' box on the welcome screen if there are no projects (#1156).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1400 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/welcome')
-rw-r--r-- | app/views/welcome/index.rhtml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/welcome/index.rhtml b/app/views/welcome/index.rhtml index 5da5a1ed3..8c25897bd 100644 --- a/app/views/welcome/index.rhtml +++ b/app/views/welcome/index.rhtml @@ -12,6 +12,7 @@ </div> <div class="splitcontentright"> + <% if @projects.any? %> <div class="box"> <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3> <ul> @@ -22,7 +23,8 @@ </li> <% end %> </ul> - </div> + </div> + <% end %> </div> <% content_for :header_tags do %> |