aboutsummaryrefslogtreecommitdiffstats
path: root/ui-summary.c
diff options
context:
space:
mode:
authorYigit Sever2021-10-29 17:25:10 +0300
committerYigit Sever2021-10-29 17:25:10 +0300
commitb2351835592be470d67d02637b8ae14283d87f25 (patch)
tree225bfac9b2a93b36ba62179e4779e7305d9547dc /ui-summary.c
parent761f5e3f6a953fadc60238b2fd7f838b30290482 (diff)
downloadcgit-b2351835592be470d67d02637b8ae14283d87f25.tar.gz
cgit-b2351835592be470d67d02637b8ae14283d87f25.tar.bz2
cgit-b2351835592be470d67d02637b8ae14283d87f25.zip
reorder git clone tags a bit
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-summary.c b/ui-summary.c
index f3b3d92..03b8c6b 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -27,12 +27,12 @@ static void print_url(const char *url)
27 columns++; 27 columns++;
28 28
29 if (urls++ == 0) { 29 if (urls++ == 0) {
30 htmlf("<tr class='nohover'><td colspan='%d'>&nbsp;</td></tr>", columns); 30 html("<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'></script>\n");
31 htmlf("<tr class='nohover'><th class='left' colspan='%d'>clone</th></tr>\n", columns);
32 html("<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'></script>");
33 html("<script>\n"); 31 html("<script>\n");
34 html("$(document).ready(function() { $('.copy').click(function(e) { var tmp = $('<input>'); $('body').append(tmp); tmp.val($(this).text()).select(); document.execCommand('copy'); tmp.remove(); e.preventDefault(); }); });\n"); 32 html("$(document).ready(function() { $('.copy').click(function(e) { var tmp = $('<input>'); $('body').append(tmp); tmp.val($(this).text()).select(); document.execCommand('copy'); tmp.remove(); e.preventDefault(); }); });\n");
35 html("</script>"); 33 html("</script>");
34 htmlf("<tr class='nohover'><td colspan='%d'>&nbsp;</td></tr>", columns);
35 htmlf("<tr class='nohover'><th class='left' colspan='%d'>clone</th></tr>\n", columns);
36 } 36 }
37 37
38 htmlf("<tr><td colspan='%d'><a class='copy' rel='vcs-git' href='", columns); 38 htmlf("<tr><td colspan='%d'><a class='copy' rel='vcs-git' href='", columns);