Project

General

Profile

check content in project-menu

Added by Terence Mill over 11 years ago

Inapplication_helper.rb there is a "sidebar_content" method which check if sidebar exists. I need a method for check if project menu) is exists (non empty) (e.g a no project view like admin menu). Is there any method? How shall i do this ?


Replies (1)

RE: check content in project-menu - Added by Mischa The Evil over 11 years ago

A look at the Redmine::MenuManager::MenuHelper module, and more specifically the Redmine::MenuManager::MenuHelper#display_main_menu? instance method, might help you further...

    (1-1/1)