X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8596cda71d04cd49cb983aee7968d14cc58c030d..ca8eb8fc8f71ee0a40015c323619f776840b6503:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index 6300516..bca50aa 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -40,6 +40,14 @@ void cgit_print_error(char *msg) html("\n"); } +char *cgit_rooturl() +{ + if (cgit_virtual_root) + return fmt("%s/", cgit_virtual_root); + else + return "./cgit.cgi"; +} + char *cgit_repourl(const char *reponame) { if (cgit_virtual_root) { @@ -113,14 +121,33 @@ void cgit_print_docend() void cgit_print_pageheader(char *title, int show_search) { - html("