summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorStefan-Code <Stefan-Code@users.noreply.github.com>2015-02-11 07:28:51 +0100
committerStefan-Code <Stefan-Code@users.noreply.github.com>2015-02-11 07:28:51 +0100
commite5d6f4ce56fbd32cc9a178cffd40a72efee59e74 (patch)
tree0ce0b44760d40c6f76d8898b9480de8a6d55e176 /templates
parent485ea6f14f38cfa5da4fa27865f62fcc7691ffb4 (diff)
downloadgitea-e5d6f4ce56fbd32cc9a178cffd40a72efee59e74.tar.gz
gitea-e5d6f4ce56fbd32cc9a178cffd40a72efee59e74.zip
Changes to repo-header-download-drop, different repo-clone-url input behaviour
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 9e52efc727..a0b927be60 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -22,7 +22,7 @@
<button class="btn btn-blue left btn-left-radius" id="repo-clone-ssh" data-link="{{$.CloneLink.SSH}}">SSH</button>
{{end}}
<button class="btn {{if $.DisableSSH}}btn-blue{{else}}btn-gray{{end}} left" id="repo-clone-https" data-link="{{$.CloneLink.HTTPS}}">HTTPS</button>
- <input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly />
+ <input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" onclick="this.select();" readonly />
<button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url" original-title="{{$.i18n.Tr "repo.click_to_copy"}}" data-original-title="{{$.i18n.Tr "repo.click_to_copy"}}" data-after-title="{{$.i18n.Tr "repo.copied"}}">{{$.i18n.Tr "repo.copy_link"}}</button>
<p class="text-center" id="repo-clone-help">{{$.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</p>
<hr/>
@@ -60,4 +60,4 @@
</ul>
</div>
</div>
-{{end}} \ No newline at end of file
+{{end}}