From c47fbc629bec5b4c213ddff24e96c20ed8f4ca74 Mon Sep 17 00:00:00 2001 From: Thibault Meyer <0xbaadf00d@users.noreply.github.com> Date: Thu, 22 Dec 2016 07:42:04 +0100 Subject: Feature #2583: Disable HTTP cloning (#3667) * Can disable GIT interactions by HTTP protocol * rename variable + fix wiki link * missing space --- templates/repo/bare.tmpl | 14 ++++++++++---- templates/repo/home.tmpl | 14 ++++++++++---- templates/repo/wiki/view.tmpl | 14 ++++++++++---- 3 files changed, 30 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl index 63baea16..af45e672 100644 --- a/templates/repo/bare.tmpl +++ b/templates/repo/bare.tmpl @@ -16,15 +16,21 @@

{{.i18n.Tr "repo.clone_this_repo"}} {{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}

- + {{if not $.DisableHTTP}} + + {{end}} {{if not $.DisableSSH}} {{end}} - + {{if not $.DisableHTTP}} + + {{else}} + + {{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index c0c06a14..52d93a21 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -51,15 +51,21 @@ {{if eq $n 0}}
- + {{if not $.DisableHTTP}} + + {{end}} {{if not $.DisableSSH}} {{end}} - + {{if not $.DisableHTTP}} + + {{else}} + + {{end}} diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index ecf80c88..b8b0d270 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -29,15 +29,21 @@
- + {{if not $.DisableHTTP}} + + {{end}} {{if not $.DisableSSH}} {{end}} - + {{if not $.DisableHTTP}} + + {{else}} + + {{end}} -- cgit v1.2.3