diff options
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> |