Hide the main menu div if there isn't any items for it. #3259

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3539 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-03-04 06:01:05 +00:00
parent afdcd770dc
commit 7514e12d33
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -41,9 +41,11 @@
<h1><%= page_header_title %></h1>
<% if display_main_menu?(@project) %>
<div id="main-menu">
<%= render_main_menu(@project) %>
</div>
<% end %>
</div>
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>