Navigation with main menu
Added by Benjamin FRAUD over 14 years ago
Good morning,
I tried to change the file redmine.rb and some issues views to bypass the link "New issue" in the main menu. The purpose was to move the link leading to a new issue declaration to the issues index page directly. The system works properly, yet, the only problem I'm facing is about the main menu display. When I go to "new issue", the sub-menu "issues" is not selected anymore. Consequently, none of the menu items is selected since I deleted the "new issue" item.
What file handles the selection of menu items? I can't find the way it works. Thank you for your answers.
Replies (1)
RE: Navigation with main menu - Added by Timothy High over 14 years ago
I'm not exactly sure how this is determined by default, but the tab selected can be changed by a method call in the controller class. In the case of Issues, the default (Issues) is being overridden specifically for the new issues action to point to the "New issue" tab:
class IssuesController < ApplicationController
menu_item :new_issue, :only => :new
...
end
You should be ok if you edit <installdir>/app/controllers/issues_controller.rb and comment out that line.