-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
22 lines (20 loc) · 1004 Bytes
/
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'
Redmine::Plugin.register :redmine_active_issues do
name 'Redmine Active Issues plugin'
author 'Evgeniy Shurmin'
description 'This is a plugin add tab to each project to list active issues'
version '0.0.2'
url 'https://github.com/jpascal/redmine_active_issues'
author_url 'https://github.com/jpascal'
settings :default => {
"status_ids" => []
}, :partial => 'settings/activeissues_settings'
project_module :active_issues do
permission :active_issues, {:active_issues => :index}
end
menu :project_menu, :active_issues, { :controller => 'active_issues', :action => 'index' }, :caption => :plugin_active_issues, :after => :activity, :param => :project_id
end
class ::User < Principal
USER_FORMATS[:firstname_short_lastname] = {:string => '#{firstname} #{lastname.chars.first}.', :order => %w(firstname lastname id)}
USER_FORMATS[:lastname_short_firstname] = {:string => '#{lastname} #{firstname.chars.first}.', :order => %w(lastname firstname id)}
end