##// END OF EJS Templates
Merged r14030 and r14031....
Merged r14030 and r14031. git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14039 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9346:5e57a1a9d947
r13657:86c77bedd49a merge
Show More
init.rb
27 lines | 1.1 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 Rails.logger.info 'Starting Example plugin for RedMine'
Jean-Philippe Lang
Added a sample plugin....
r742
Redmine::Plugin.register :sample_plugin do
name 'Example plugin'
author 'Author name'
description 'This is a sample plugin for Redmine'
version '0.0.1'
Jean-Philippe Lang
Do not use settings/settings partial name in sample plugin (#3557)....
r2698 settings :default => {'sample_setting' => 'value', 'foo'=>'bar'}, :partial => 'settings/sample_plugin_settings'
Jean-Philippe Lang
Added a sample plugin....
r742
# This plugin adds a project module
# It can be enabled/disabled at project level (Project settings -> Modules)
project_module :example_module do
# A public action
permission :example_say_hello, {:example => [:say_hello]}, :public => true
# This permission has to be explicitly given
# It will be listed on the permissions screen
permission :example_say_goodbye, {:example => [:say_goodbye]}
Jean-Philippe Lang
Activity provider example in sample plugin....
r1694 # This permission can be given to project members only
permission :view_meetings, {:meetings => [:index, :show]}, :require => :member
Jean-Philippe Lang
Added a sample plugin....
r742 end
# A new item is added to the project menu
Jean-Philippe Lang
Menus items:...
r1158 menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample'
Toshi MARUYAMA
remove trailing white-spaces from extra/sample_plugin/init.rb...
r9161
Jean-Philippe Lang
Activity provider example in sample plugin....
r1694 # Meetings are added to the activity view
activity_provider :meetings
Jean-Philippe Lang
Added a sample plugin....
r742 end