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 | |
parent | c47fbc629bec5b4c213ddff24e96c20ed8f4ca74 (diff) |
Minor fix for PR #3667
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.VERSION | 2 | ||||
-rw-r--r-- | templates/repo/bare.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 6 |
4 files changed, 4 insertions, 16 deletions
diff --git a/templates/.VERSION b/templates/.VERSION index e059484b..1da1fccc 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.106.1222
\ No newline at end of file +0.9.107.1222
\ No newline at end of file diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl index af45e672..fd019f71 100644 --- a/templates/repo/bare.tmpl +++ b/templates/repo/bare.tmpl @@ -26,11 +26,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 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> 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> diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index b8b0d270..1c064194 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -39,11 +39,7 @@ SSH </button> {{end}} - {{if not $.DisableHTTP}} - <input id="repo-clone-url" value="{{$.WikiCloneLink.HTTPS}}" readonly> - {{else}} - <input id="repo-clone-url" value="{{$.WikiCloneLink.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> |