summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
Unidiff
Diffstat (limited to 'ui-shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/ui-shared.c b/ui-shared.c
index f18b2c7..5e03a7a 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -613,10 +613,4 @@ char *hc(struct cgit_cmd *cmd, const char *page)
613 613
614void cgit_print_pageheader(struct cgit_context *ctx) 614static void print_header(struct cgit_context *ctx)
615{ 615{
616 struct cgit_cmd *cmd = cgit_get_cmd(ctx);
617
618 if (!cmd && ctx->repo)
619 fallback_cmd = "summary";
620
621 html("<div id='cgit'>");
622 html("<table id='header'>\n"); 616 html("<table id='header'>\n");
@@ -661,2 +655,14 @@ void cgit_print_pageheader(struct cgit_context *ctx)
661 html("</td></tr></table>\n"); 655 html("</td></tr></table>\n");
656}
657
658void cgit_print_pageheader(struct cgit_context *ctx)
659{
660 struct cgit_cmd *cmd = cgit_get_cmd(ctx);
661
662 if (!cmd && ctx->repo)
663 fallback_cmd = "summary";
664
665 html("<div id='cgit'>");
666 if (!ctx->cfg.noheader)
667 print_header(ctx);
662 668