diff options
author | Unknwon <u@gogs.io> | 2016-12-22 01:51:49 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-22 01:51:49 -0500 |
commit | 16d3e7085efc1143cdae026fda4fe86d15f615dd (patch) | |
tree | e43e98d63f5d76f19d22476220b11e7e423ec904 /templates/repo/home.tmpl | |
parent | c47fbc629bec5b4c213ddff24e96c20ed8f4ca74 (diff) |
Minor fix for PR #3667
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 6 |
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> |