aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-22 01:51:49 -0500
committerUnknwon <u@gogs.io>2016-12-22 01:51:49 -0500
commit16d3e7085efc1143cdae026fda4fe86d15f615dd (patch)
treee43e98d63f5d76f19d22476220b11e7e423ec904 /templates/repo/home.tmpl
parentc47fbc629bec5b4c213ddff24e96c20ed8f4ca74 (diff)
Minor fix for PR #3667
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl6
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 52d93a21..88e74eb6 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -61,11 +61,7 @@
SSH
</button>
{{end}}
- {{if not $.DisableHTTP}}
- <input id="repo-clone-url" value="{{$.CloneLink.HTTPS}}" readonly>
- {{else}}
- <input id="repo-clone-url" value="{{$.CloneLink.SSH}}" readonly>
- {{end}}
+ <input id="repo-clone-url" value="{{if not $.DisableHTTP}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly>
<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>