##// END OF EJS Templates
add unit test of error message in case that member role is empty...
add unit test of error message in case that member role is empty git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8126 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2698:202d01664a6f
r8006:740b54f55b65
Show More
init.rb
30 lines | 1.2 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Added a sample plugin....
r742 # Redmine sample plugin
require 'redmine'
RAILS_DEFAULT_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'
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'
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