-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinit.rb
More file actions
18 lines (15 loc) · 883 Bytes
/
init.rb
File metadata and controls
18 lines (15 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'redmine_all_files'
require 'redmine/i18n'
Redmine::Plugin.register :redmine_all_files do
name 'Redmine All Files plugin'
author 'Dmitry Kovalenok'
description 'Plugin for Redmine to view all attachments related to current project'
version '0.0.3'
url 'https://github.com/twinslash/redmine_all_files'
author_url 'https://github.com/twinslash'
project_module :all_files do
permission :view_all_files, { :project_attachments => [:index] }, :public => true
end
menu :project_menu, :all_files, { :controller => 'project_attachments', :action => 'index' }, :caption => Proc.new { |project| I18n.t('project_module_all_files') }, :after => :files, :param => :project_id
menu :top_menu, :all_files, { :controller => 'project_attachments', :action => 'index' }, :caption => Proc.new { |project| I18n.t('project_module_all_files') }, :after => :projects
end