X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/141f1c3eb657470e81bbf998f44f9723f9009def..d2eb4fddb0fb7cd1751debcff6fe1219b9c619c8:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index f366354..6f83d2a 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -437,13 +437,27 @@ void cgit_print_docstart(struct cgit_context *ctx) html("\n"); + if (ctx->cfg.favicon) { + html("\n"); + } html("\n"); html("\n"); } void cgit_print_docend() { - html("\n\n\n"); + html(""); + if (ctx.cfg.footer) + html_include(ctx.cfg.footer); + else { + html("\n"); + } + html("\n\n"); } int print_branch_option(const char *refname, const unsigned char *sha1, @@ -542,10 +556,10 @@ void cgit_print_pageheader(struct cgit_context *ctx) html(""); if (ctx->repo) { + cgit_index_link("index", NULL, NULL, NULL, 0); + html(" : "); reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), ctx->qry.head, NULL, NULL); - html(" : "); - html_txt(ctx->qry.page); html(""); html("
\n"); add_hidden_formfields(0, 1, ctx->qry.page);