mirror of
https://github.com/dolphin-emu/redmine_webhook.git
synced 2026-01-31 01:15:19 +01:00
19 lines
477 B
Ruby
19 lines
477 B
Ruby
module RedmineWebhook
|
|
module ProjectsHelperPatch
|
|
def project_settings_tabs
|
|
tabs = super
|
|
webhook_tab = {
|
|
:name => 'webhook',
|
|
:controller => 'webhook_settings',
|
|
:action => :show,
|
|
:partial => 'webhook_settings/show',
|
|
:label => :webhook
|
|
}
|
|
tabs << webhook_tab if User.current.allowed_to?(:manage_hook, @project)
|
|
tabs
|
|
end
|
|
end
|
|
end
|
|
|
|
ProjectsController.send(:helper, RedmineWebhook::ProjectsHelperPatch)
|