]> source.dussan.org Git - redmine.git/commitdiff
Hide the 'Latest projects' box on the welcome screen if there are no projects (#1156).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 1 May 2008 13:01:23 +0000 (13:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 1 May 2008 13:01:23 +0000 (13:01 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1400 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/welcome/index.rhtml

index 5da5a1ed361ffa9b010e43217ddb8d17f2ac7a20..8c25897bdb46d1f416121ee9c55a5884f8e76045 100644 (file)
@@ -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 %>