Añade el plugin Redmine Git Server 0.4
This commit is contained in:
parent
525527a55b
commit
4b46a7472e
30 changed files with 485 additions and 0 deletions
9
plugins/redmine_git_server/config/locales/en.yml
Normal file
9
plugins/redmine_git_server/config/locales/en.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
en:
|
||||
project_module_git_server: Git Server
|
||||
clone: Clone
|
||||
clone_with_protocol: Clone with %{protocol}
|
||||
use_git_with_this_web_url: Use Git with this web URL.
|
||||
url_copied: URL copied to the clipboard
|
||||
git_read_write_access: Read/write access.
|
||||
git_read_only_access: Read only access.
|
||||
empty_repository: This repository is empty.
|
10
plugins/redmine_git_server/config/locales/fr.yml
Normal file
10
plugins/redmine_git_server/config/locales/fr.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
fr:
|
||||
project_module_git_server: Serveur Git
|
||||
clone: Cloner
|
||||
clone_with_protocol: Cloner via %{protocol}
|
||||
use_git_with_this_web_url: Utilisez Git avec cette URL.
|
||||
url_copied: URL copiée dans le presse-papiers
|
||||
git_read_write_access: Accès en lecture/écriture.
|
||||
git_read_only_access: Accès en lecture seule.
|
||||
empty_repository: Ce dépôt est vide.
|
||||
|
15
plugins/redmine_git_server/config/routes.rb
Normal file
15
plugins/redmine_git_server/config/routes.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
Grack::App::ROUTES.each do |grack_route|
|
||||
regex = grack_route[0]
|
||||
method = grack_route[1].downcase.to_sym
|
||||
action = grack_route[2]
|
||||
match 'projects/:id/repository/:repository_id/*path',
|
||||
controller: 'git_server',
|
||||
action: action,
|
||||
via: method,
|
||||
format: false,
|
||||
constraints: -> (request) {
|
||||
regex.match(request.path)
|
||||
}
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue