Añade el plugin Redmine Git Server 0.4

This commit is contained in:
Manuel Cillero 2021-05-14 16:45:54 +02:00
parent 525527a55b
commit 4b46a7472e
30 changed files with 485 additions and 0 deletions

View 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.

View 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.

View 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