forked from 0xBF/redmine_sortable_table
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.rb
More file actions
21 lines (18 loc) · 741 Bytes
/
Copy pathinit.rb
File metadata and controls
21 lines (18 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
Redmine::Plugin.register :sortable_table do
name 'Sortable table plugin'
author 'Alexander Golovko'
description ''
version '0.99'
#url 'http://www.redminecrm.com'
author_url 'mailto:alexandro@ankalagon.ru' if respond_to? :author_url
end
Redmine::WikiFormatting::Macros.register do
desc "Macro for add javascript and css files for table sort work"
macro :sortable_table do |obj, args|
content_for :header_tags, javascript_include_tag( "tablesort.js", :plugin => 'sortable_table').html_safe
content_for :header_tags, javascript_include_tag( "customsort.js", :plugin => 'sortable_table').html_safe
content_for :header_tags, stylesheet_link_tag( :default, :plugin => 'sortable_table').html_safe
""
end
end