X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/23296ad648c0e2a9e3cf40a3de322b10ad25cce3..f135569b:/ui-shared.c?ds=sidebyside
diff --git a/ui-shared.c b/ui-shared.c
index aa65988..7287956 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[] =
@@ -465,97 +466,59 @@ void add_hidden_formfields(int incl_head, int incl_search, char *page)
}
}
+char *hc(struct cgit_cmd *cmd, const char *page)
+{
+ return (strcmp(cmd->name, page) ? NULL : "active");
+}
+
void cgit_print_pageheader(struct cgit_context *ctx)
{
- static const char *default_info = "This is cgit, a fast webinterface for git repositories";
- int header = 0;
- char *url;
+ struct cgit_cmd *cmd = cgit_get_cmd(ctx);
- html("
\n");
- html("\n");
-
- html("| \n");
+ html(" |
\n");
+ html("");
}
void cgit_print_filemode(unsigned short mode)