Mercurial > hg > soundsoftware-site
view .svn/pristine/80/806fc15a74f68aa08e1189f7dd28e0b1f084bd22.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | 038ba2d95de8 |
children |
line wrap: on
line source
Rails.logger.info 'Starting Example plugin for RedMine' Redmine::Plugin.register :sample_plugin do name 'Example plugin' author 'Author name' description 'This is a sample plugin for Redmine' version '0.0.1' settings :default => {'sample_setting' => 'value', 'foo'=>'bar'}, :partial => 'settings/sample_plugin_settings' # 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]} # This permission can be given to project members only permission :view_meetings, {:meetings => [:index, :show]}, :require => :member end # A new item is added to the project menu menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample' # Meetings are added to the activity view activity_provider :meetings end