From 6263f1d2e05b73d0358779b7b8d99c8251480386 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 15:34:16 -1000 Subject: Submit option forms without inline handlers --- source/ui-diff.c | 6 +++--- source/ui-shared.c | 2 +- source/ui-stats.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/ui-diff.c b/source/ui-diff.c index c2f4717..baaa1f8 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -353,7 +353,7 @@ void cgit_print_diff_ctrls(void) html(""); html("context:"); html(""); - html(""); curr = ctx.qry.context; if (!curr) curr = 3; @@ -366,7 +366,7 @@ void cgit_print_diff_ctrls(void) html(""); html("space:"); html(""); - html(""); html_intoption(0, "include", ctx.qry.ignorews); html_intoption(1, "ignore", ctx.qry.ignorews); html(""); @@ -374,7 +374,7 @@ void cgit_print_diff_ctrls(void) html(""); html("mode:"); html(""); - html(""); curr = ctx.qry.has_difftype ? ctx.qry.difftype : ctx.cfg.difftype; html_intoption(0, "unified", curr); html_intoption(1, "ssdiff", curr); diff --git a/source/ui-shared.c b/source/ui-shared.c index c7a91e2..df7ad1f 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1064,7 +1064,7 @@ static void print_header(void) if (ctx.repo && ctx.env.authenticated) { html("
\n"); cgit_add_hidden_formfields(0, 1, ctx.qry.page); - html("\n"); refs_for_each_branch_ref(get_main_ref_store(the_repository), print_branch_option, ctx.qry.head); if (ctx.repo->enable_remote_branches) diff --git a/source/ui-stats.c b/source/ui-stats.c index d33441b..cabbc3c 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -405,14 +405,14 @@ void cgit_show_stats(void) html(""); if (ctx.repo->max_stats > 1) { html(""); - html(""); } html(""); - html("
Period:
Authors: