summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-02-11 12:27:29 -0500
committer无闻 <u@gogs.io>2015-02-11 12:27:29 -0500
commit0af74b36add865445ed1d6cd649910d8bb82fe5e (patch)
tree6e83ad33b2235d1c8f3949872a7cbaf06aaf0228 /templates
parentd02e45f985ce371eb33fcca86bf80ca078be1d88 (diff)
parente5d6f4ce56fbd32cc9a178cffd40a72efee59e74 (diff)
downloadgitea-0af74b36add865445ed1d6cd649910d8bb82fe5e.tar.gz
gitea-0af74b36add865445ed1d6cd649910d8bb82fe5e.zip
Merge pull request #937 from Stefan-Code/dev
Changes to repo-header-download-drop
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}}