forgejo/modules/web/middleware
Gergely Nagy 3d3366dbbe
[GITEA] Configurable clone methods
Adds `[repository].DOWNLOAD_OR_CLONE_METHODS` (defaulting to
"download-zip,download-targz,download-bundle,vscode-clone"), which lets
an instance administrator override the additional clone methods
displayed on the repository home view.

This is purely display-only, the clone methods not listed here are still
available, unless disabled elsewhere. They're just not displayed.

Fixes #710.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 2aadcf4946)
(cherry picked from commit 42ac34fbf9)
(cherry picked from commit bd231b0245)
2024-01-15 16:48:44 +00:00
..
binding.go [GITEA] add option for banning dots in usernames 2024-01-15 16:11:57 +00:00
cookie.go Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
data.go [GITEA] Configurable clone methods 2024-01-15 16:48:44 +00:00
flash.go Fix "Flash" message usage (#25895) 2023-07-15 11:52:03 +03:00
locale.go Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
request.go Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00