Project

General

Profile

Add project menu to only one project

Added by Piotr Kołodziejski over 8 years ago

Hi,

i new in redmine , but i was programming some in rails. I created plugin but i must add menuitem only to one menu, i created some like this in init.rb ( where plugin menu is register)

menu :project_menu, :holidays, { :controller => 'holidays', :action => 'list' }, :caption => 'Holiday days', :after => :activity, :param => :project_id, :if => Proc.new { :project_id == "Absense"}

but it doesn't work.

Please help me how can i add thie menu only to specyfic project.