X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dabb34af760eff2a6ab8e14927fd173cafb77547..afcdd083dab81afef744e261d81a452698188c30:/ui-shared.c?ds=inline diff --git a/ui-shared.c b/ui-shared.c index 3e13c86..ece041c 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -460,6 +460,7 @@ void cgit_print_pageheader(char *title, int show_search) { static const char *default_info = "This is cgit, a fast webinterface for git repositories"; int header = 0; + char *url; html("
\n");
@@ -492,6 +493,22 @@ void cgit_print_pageheader(char *title, int show_search)
for_each_ref(print_archive_ref, &header);
+ if (cgit_repo->clone_url || cgit_clone_prefix) {
+ html("clone\n"); + if (cgit_repo->clone_url) + url = cgit_repo->clone_url; + else + url = fmt("%s%s", cgit_clone_prefix, + cgit_repo->url); + html("\n"); + html_txt(strrpart(url, 20)); + html("\n"); + } + html("branch\n"); html(" |