mirror of
https://github.com/dolphin-emu/redmine_issue_templates.git
synced 2024-11-30 04:50:57 +00:00
29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
require 'redmine'
|
|
require 'issue_templates_issues_hook'
|
|
require 'issue_templates_projects_helper_patch'
|
|
|
|
Redmine::Plugin.register :redmine_issue_templates do
|
|
name 'Redmine Issue Templates plugin'
|
|
author 'Akiko Takano'
|
|
description 'Plugin to generate and use issue templates for each project to assist issue creation.'
|
|
version '0.0.3'
|
|
author_url 'http://twitter.com/akiko_pusu'
|
|
requires_redmine :version_or_higher => '2.0.0'
|
|
url 'https://bitbucket.org/akiko_pusu/redmine_issue_templates'
|
|
|
|
project_module :issue_templates do
|
|
permission :edit_issue_templates, {:issue_templates => [:new, :edit, :destroy, :move]}
|
|
permission :show_issue_templates, {:issue_templates => [:index, :show, :load, :set_pulldown]}
|
|
permission :manage_issue_templates,
|
|
{:issue_templates_settings => [:show, :edit]}, :require => :member
|
|
end
|
|
|
|
|
|
Rails.configuration.to_prepare do
|
|
require_dependency 'projects_helper'
|
|
unless ProjectsHelper.included_modules.include? IssueTemplatesProjectsHelperPatch
|
|
ProjectsHelper.send(:include, IssueTemplatesProjectsHelperPatch)
|
|
end
|
|
end
|
|
end
|