diff options
author | Yigit Sever | 2021-10-29 17:25:10 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 17:25:10 +0300 |
commit | b2351835592be470d67d02637b8ae14283d87f25 (patch) | |
tree | 225bfac9b2a93b36ba62179e4779e7305d9547dc | |
parent | 761f5e3f6a953fadc60238b2fd7f838b30290482 (diff) | |
download | cgit-b2351835592be470d67d02637b8ae14283d87f25.tar.gz cgit-b2351835592be470d67d02637b8ae14283d87f25.tar.bz2 cgit-b2351835592be470d67d02637b8ae14283d87f25.zip |
reorder git clone tags a bit
-rw-r--r-- | ui-summary.c | 6 |
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'> </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'> </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); |