forgejo/modules/web
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 2aadcf4946e48ee43800568fe705d00a062c42bf)
(cherry picked from commit 42ac34fbf9105eed27ee687b305a85515270f0cc)
(cherry picked from commit bd231b02450212aca6be775663c3d24ddf19f990)
2024-01-15 16:48:44 +00:00
..
middleware [GITEA] Configurable clone methods 2024-01-15 16:48:44 +00:00
routing Update tool dependencies (#26607) 2023-08-20 22:59:19 +00:00
types Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
handler.go [GITEA] Use maintained gziphandler 2024-01-15 16:11:58 +00:00
route.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
route_test.go Refactor web route (#24080) 2023-04-20 14:49:06 -04:00
routemock.go Make route middleware/handler mockable (#25766) 2023-07-09 12:25:53 +00:00
routemock_test.go Make route middleware/handler mockable (#25766) 2023-07-09 12:25:53 +00:00