forked from netaustin/redmine_task_board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
22 lines (19 loc) · 1 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'redmine'
require 'redmine_task_board_hook_listener'
Rails.configuration.to_prepare do
require_dependency 'projects_helper'
ProjectsHelper.send(:include, RedmineTaskBoardSettingsPatch) unless ProjectsHelper.included_modules.include?(RedmineTaskBoardSettingsPatch)
end
Redmine::Plugin.register :redmine_task_board do
name 'Redmine Task Board'
author 'Austin Smith'
description 'Add a Kanban-style task board tab to projects'
version '0.0.1'
url 'https://github.com/netaustin/redmine_task_board'
author_url 'http://www.alleyinteractive.com/'
project_module :taskboard do
permission :edit_taskboard, {:projects => :settings, :taskboard => [:create_column, :delete_column, :update_columns]}, :require => :member
permission :view_taskboard, {:taskboard => [:index, :save, :archive_issues, :unarchive_issue]}, :require => :member
end
menu :project_menu, :taskboard, { :controller => 'taskboard', :action => 'index' }, :caption => 'Task Board', :before => :issues, :param => :project_id
end