Mercurial > hg > soundsoftware-site
annotate .svn/pristine/80/806fc15a74f68aa08e1189f7dd28e0b1f084bd22.svn-base @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 Rails.logger.info 'Starting Example plugin for RedMine' |
Chris@1296 | 2 |
Chris@1296 | 3 Redmine::Plugin.register :sample_plugin do |
Chris@1296 | 4 name 'Example plugin' |
Chris@1296 | 5 author 'Author name' |
Chris@1296 | 6 description 'This is a sample plugin for Redmine' |
Chris@1296 | 7 version '0.0.1' |
Chris@1296 | 8 settings :default => {'sample_setting' => 'value', 'foo'=>'bar'}, :partial => 'settings/sample_plugin_settings' |
Chris@1296 | 9 |
Chris@1296 | 10 # This plugin adds a project module |
Chris@1296 | 11 # It can be enabled/disabled at project level (Project settings -> Modules) |
Chris@1296 | 12 project_module :example_module do |
Chris@1296 | 13 # A public action |
Chris@1296 | 14 permission :example_say_hello, {:example => [:say_hello]}, :public => true |
Chris@1296 | 15 # This permission has to be explicitly given |
Chris@1296 | 16 # It will be listed on the permissions screen |
Chris@1296 | 17 permission :example_say_goodbye, {:example => [:say_goodbye]} |
Chris@1296 | 18 # This permission can be given to project members only |
Chris@1296 | 19 permission :view_meetings, {:meetings => [:index, :show]}, :require => :member |
Chris@1296 | 20 end |
Chris@1296 | 21 |
Chris@1296 | 22 # A new item is added to the project menu |
Chris@1296 | 23 menu :project_menu, :sample_plugin, { :controller => 'example', :action => 'say_hello' }, :caption => 'Sample' |
Chris@1296 | 24 |
Chris@1296 | 25 # Meetings are added to the activity view |
Chris@1296 | 26 activity_provider :meetings |
Chris@1296 | 27 end |