X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/23296ad648c0e2a9e3cf40a3de322b10ad25cce3..931fc6d1e4986a4566647dda16af09bf69a28b89:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index aa65988..782caa7 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -7,6 +7,7 @@ */ #include "cgit.h" +#include "cmd.h" #include "html.h" const char cgit_doctype[] = @@ -388,7 +389,7 @@ void cgit_print_docstart(struct cgit_context *ctx) void cgit_print_docend() { - html("\n\n\n\n\n"); + html("\n\n\n"); } int print_branch_option(const char *refname, const unsigned char *sha1, @@ -465,75 +466,85 @@ void add_hidden_formfields(int incl_head, int incl_search, char *page) } } -void cgit_print_pageheader(struct cgit_context *ctx) +char *hc(struct cgit_cmd *cmd, const char *page) { - static const char *default_info = "This is cgit, a fast webinterface for git repositories"; - int header = 0; - char *url; + return (strcmp(cmd->name, page) ? NULL : "active"); +} - html("\n"); - html("\n"); - - html("
\n"); + html("
\n"); + html("
"); } void cgit_print_filemode(unsigned short mode)