[phase-6]project menu

This commit is contained in:
Toru Takahashi 2018-05-13 20:19:58 +09:00 committed by TAKAHASHI,Toru
parent 88da1209d3
commit ce868cfcf2
3 changed files with 15 additions and 1 deletions

View File

@ -6,3 +6,5 @@ en:
label_glossary_categories: "Glossary categories" label_glossary_categories: "Glossary categories"
label_glossary_category: "Glossary category" label_glossary_category: "Glossary category"
label_glossary_category_new: "New glossary category" label_glossary_category_new: "New glossary category"
glossary_title: Glossary

View File

@ -5,3 +5,4 @@ ja:
label_glossary_categories: "用語のカテゴリ" label_glossary_categories: "用語のカテゴリ"
label_glossary_category: "用語のカテゴリ" label_glossary_category: "用語のカテゴリ"
label_glossary_category_new: "カテゴリの作成" label_glossary_category_new: "カテゴリの作成"
glossary_title: 用語集

11
init.rb
View File

@ -5,4 +5,15 @@ Redmine::Plugin.register :redmine_glossary do
version '1.0.1' version '1.0.1'
url 'https://github.com/torutk/redmine_glossary' url 'https://github.com/torutk/redmine_glossary'
author_url 'http://www.torutk.com' author_url 'http://www.torutk.com'
project_module :glossary do
permission :all_glossary, glossary_terms: :index
end
menu :project_menu, :glossary,
{ controller: :glossary_terms, action: :index },
caption: :glossary_title,
param: :project_id
end end