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
This commit is contained in:
Jean-Philippe Lang 2008-05-01 13:01:23 +00:00
parent 2d11265ec5
commit f705b889d9
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
</div> </div>
<div class="splitcontentright"> <div class="splitcontentright">
<% if @projects.any? %>
<div class="box"> <div class="box">
<h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3> <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
<ul> <ul>
@ -22,7 +23,8 @@
</li> </li>
<% end %> <% end %>
</ul> </ul>
</div> </div>
<% end %>
</div> </div>
<% content_for :header_tags do %> <% content_for :header_tags do %>