Sha256: 6a18384460d8c89647c2bf38fcd85fb2306ad181e7dc81e3abd7e8e3719935a6

Contents?: true

Size: 1.11 KB

Versions: 34

Compression:

Stored size: 1.11 KB

Contents

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.38 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.37 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.11 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.10 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.36 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.34 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.09 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.07 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.06 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.05 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.04 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.03 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.33 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.02 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.1.01 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.29 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.28 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.27 spec/redmine/extra/sample_plugin/init.rb
redmine_extensions-0.0.24 spec/redmine/extra/sample_plugin/init.rb