diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-03-04 06:01:05 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-03-04 06:01:05 +0000 |
commit | 7514e12d331bea026155df6cdc2b68df8b77d7b1 (patch) | |
tree | 386ddf1a125225c55825860dd44391d6799af073 /app/views/layouts | |
parent | afdcd770dcb9d6b3b1f8fe301edb06a05596a5fb (diff) | |
download | redmine-7514e12d331bea026155df6cdc2b68df8b77d7b1.tar.gz redmine-7514e12d331bea026155df6cdc2b68df8b77d7b1.zip |
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
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/base.rhtml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index d3f63ede6..1873191c0 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -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) %> |