To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / init.rb @ 454:2f1a308c4c11
History | View | Annotate | Download (841 Bytes)
| 1 | 298:a41158bde9e0 | luis | require 'redmine'
|
|---|---|---|---|
| 2 | 454:2f1a308c4c11 | luis | require 'dispatcher'
|
| 3 | |||
| 4 | |||
| 5 | # Patches to the Redmine core.
|
||
| 6 | |||
| 7 | Dispatcher.to_prepare :redmine_model_dependencies do |
||
| 8 | require_dependency 'project'
|
||
| 9 | |||
| 10 | unless Project.included_modules.include? Bibliography::ProjectPublicationsPatch |
||
| 11 | Project.send(:include, Bibliography::ProjectPublicationsPatch) |
||
| 12 | end
|
||
| 13 | end
|
||
| 14 | 298:a41158bde9e0 | luis | |
| 15 | Redmine::Plugin.register :redmine_bibliography do |
||
| 16 | name 'Redmine Bibliography plugin'
|
||
| 17 | author 'Chris Cannam, Luis Figueira'
|
||
| 18 | description 'This is a plugin for Redmine'
|
||
| 19 | version '0.0.1'
|
||
| 20 | url 'http://example.com/path/to/plugin'
|
||
| 21 | author_url 'http://example.com/about'
|
||
| 22 | 376:ad71d0604ac2 | luis | |
| 23 | permission :view_bibliography, :redmine_bibliography => :index |
||
| 24 | |||
| 25 | menu :project_menu, :redmine_bibliography, {:controller => 'publications', :action => 'index'}, :caption => 'Bibliography', :after => :activity, :param => :project_id |
||
| 26 | 454:2f1a308c4c11 | luis | |
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | 298:a41158bde9e0 | luis | end
|
| 33 | 376:ad71d0604ac2 | luis |