included do
prepend InstanceOverwriteMethods
end
module InstanceOverwriteMethods
def project_settings_tabs
tabs = super
action = {:name => 'custom_workflows',
:action => :manage_project_workflow,
:partial => 'projects/settings/custom_workflow',
:label => :label_custom_workflow_plural}
tabs << action if User.current.allowed_to?(:manage_project_workflow, @project)
tabs
end
end
end
end
end
if Redmine::Plugin.installed?(:easy_extensions)
RedmineExtensions::PatchManager.register_helper_patch 'ProjectsHelper',
'RedmineCustomWorkflows::Patches::ProjectsHelperPatch', prepend: true
else
ProjectsHelper.send(:include, RedmineCustomWorkflows::Patches::ProjectsHelperPatch)
end
I hope You like it, and it will be in your next version.
Dear Anteo,
I have a probrem when I installed the plugin: my others plugins project settings tabs are disappear.
I modified your projects_helper_patch.rb file, and it fix the problem.
My version:
I hope You like it, and it will be in your next version.