forked from cforce/projects_tree_view
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.rb
More file actions
21 lines (16 loc) · 644 Bytes
/
init.rb
File metadata and controls
21 lines (16 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'redmine'
# Patches to the Redmine core.
require 'projects_tree_view'
Redmine::Plugin.register :projects_tree_view do
name 'Projects Tree View plugin'
author 'Chris Peterson and Github community'
description 'This is a Redmine plugin which will turn the projects page into a tree view'
version '0.0.7'
end
class ProjectsTreeViewListener < Redmine::Hook::ViewListener
# Adds javascript and stylesheet tags
def view_layouts_base_html_head(context)
javascript_include_tag('projects_tree_view', :plugin => :projects_tree_view) +
stylesheet_link_tag('projects_tree_view', :plugin => :projects_tree_view)
end
end