X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/f135569b2be3fb1816f802f9a162b3743b735d1c..39912a24edf45497e668ebda25636aa6f6db0c9b:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index 7287956..bb08c4a 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -389,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, @@ -478,22 +478,53 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("\n"); html("\n"); html("\n"); + html("\n"); - html("\n"); + + html("\n"); + + html("\n"); html("\n"); html("
\n"); @@ -510,12 +541,36 @@ void cgit_print_pageheader(struct cgit_context *ctx) ctx->qry.head, ctx->qry.sha1); cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head, ctx->qry.sha1, ctx->qry.sha2, NULL); - cgit_patch_link("patch", NULL, hc(cmd, "patch"), ctx->qry.head, - ctx->qry.sha1); + html(""); + html("
\n"); + add_hidden_formfields(1, 0, "log"); + html("\n"); + html("\n"); + html("\n"); + html("
\n"); } else { html("index\n"); + html("
"); + html("
\n"); + html("\n"); + html("\n"); + html("
"); } html("
\n"); html("
");