summaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2018-04-09 22:49:59 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2018-04-09 22:49:59 +0800
commit30c81a126c36da555f3e982d36c38779d962edfd (patch)
treef238f9cfa58264493cf0caccc1e2a13fd9bca10d /templates/repo/home.tmpl
parentdaf70d3a4e8e0120e6fb7a39c938c88d5e5ad47b (diff)
downloadgitea-30c81a126c36da555f3e982d36c38779d962edfd.tar.gz
gitea-30c81a126c36da555f3e982d36c38779d962edfd.zip
fix: show Clipboard button if disable HTTP of git protocol (#3773)
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 9f705c967c..72212a75b6 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -73,7 +73,7 @@
{{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
<input id="repo-clone-url" value="{{$.CloneLink.SSH}}" readonly>
{{end}}
- {{if or ((not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)))}}
+ {{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
<button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
<i class="octicon octicon-clippy"></i>
</button>