Defect #931
closedPlugin tabs don't get marked as "selected" when active.
0%
Description
I've not been able to find a plugin that adds a tab that has that tab "selected" when that plugin is active.
As found in other plugins:
menu :project_menu, "Todos", :controller => 'todo_lists', :action => 'index'
puts "Todos" into the menu but is not marked as the active section when navigated to.
But what's really wanted by Redmine:
menu :project_menu, :todo_lists, :controller => 'todo_lists', :action => 'index'
puts "Todo lists" into the menu.
This doesn't pose a problem and isn't really a bug, but I was unable to locate a way to pass in a string that may differ from the controller name.
Updated by Jim Mulholland almost 17 years ago
Good catch, Jeremy!
I updated my redmine_google_calendar plugin with this update. Worked like a champ!
I would probably throw a post on the forums about this also.
Thanks!
Jim
Updated by Jean-Philippe Lang almost 17 years ago
- Status changed from New to Closed
- Resolution set to Invalid
By default, the menu name is the controller name (eg. :todo_lists) but you can override it in the controller with:
menu_item :whatever
or for a particular action only:
menu_item :specific_item, :only => :some_action
Example here: source:trunk/app/controllers/issues_controller.rb@1356#L20