summaryrefslogtreecommitdiffstats
path: root/templates/repo/header.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-31 21:03:16 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-31 21:03:16 +0800
commit676bd764fa602048c1a81d94943f45dcb1a75c76 (patch)
tree06a39da85956e3e5b946bfa48af4a3d500b6151c /templates/repo/header.tmpl
parent7e36bf448db915250eb831a00b122fc1092df630 (diff)
downloadgitea-676bd764fa602048c1a81d94943f45dcb1a75c76.tar.gz
gitea-676bd764fa602048c1a81d94943f45dcb1a75c76.zip
UI: SSH/HTTPS address switch and copy
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r--templates/repo/header.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 31259f056d..6f3d4c66ca 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -16,10 +16,10 @@
</a>
<div id="repo-header-download-drop" class="drop-down">
<div id="repo-clone" class="clear">
- <button id="repo-clone-ssh" class="btn btn-blue current left left btn-left-radius">SSH</button>
- <button id="repo-clone-https" class="btn btn-gray left">HTTPS</button>
- <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" />
- <button id="repo-clone-copy" class="btn btn-black left btn-right-radius">Copy</button>
+ <button class="btn btn-blue left left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button>
+ <button class="btn btn-gray left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button>
+ <input id="repo-clone-url" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" readonly />
+ <button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button>
<p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" | Str2html}}</p>
<hr/>
<div class="text-center" id="repo-clone-zip">