Nuevo plugin Private Wiki 0.2.0

This commit is contained in:
Manuel Cillero 2019-01-30 19:41:31 +01:00
parent 4e788bb03c
commit 49913ad11b
20 changed files with 480 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# English strings go here for Rails i18n
en:
button_setprivate_wiki: Set Private
button_setpublic_wiki: Set Public
private_flag: PRIVATE

View file

@ -0,0 +1,5 @@
# French strings go here for Rails i18n
fr:
button_setprivate_wiki: Rendre Privé
button_setpublic_wiki: Rendre Public
private_flag: PRIVÉ

View file

@ -0,0 +1,5 @@
# Plugin's routes
RedmineApp::Application.routes.draw do
#Allow utilisation of action 'change_privacy' in links (set route to wiki method)
match 'projects/:project_id/wiki/:id/change_privacy/:private', :controller => 'wiki', :action => 'change_privacy', :via => [:post]
end