redmine_glossary/init.rb

29 lines
904 B
Ruby
Raw Normal View History

Redmine::Plugin.register :redmine_glossary do
name 'Redmine Glossary plugin'
author 'Toru Takahashi'
description 'This is a plugin for Redmine to create a glossary that is a list of terms in a project.'
version '1.0.1'
url 'https://github.com/torutk/redmine_glossary'
author_url 'http://www.torutk.com'
2018-05-13 13:19:58 +02:00
project_module :glossary do
permission :view_glossary, {
glossary_terms: [:index, :show],
glossary_categories: [:index, :show]
}
permission :manage_glossary, {
glossary_terms: [:new, :create, :edit, :update, :destroy],
glossary_categories: [:new, :create, :edit, :update, :destroy],
},
require: :member
2018-05-13 13:19:58 +02:00
end
menu :project_menu, :glossary,
{ controller: :glossary_terms, action: :index },
caption: :glossary_title,
param: :project_id
end