From e1b24b557d00407fb96755c34a8956afff56a51a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 26 Sep 2026 08:38:40 -1000 Subject: Add stable markup hooks for site themes --- source/ui-stats.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'source/ui-stats.c') diff --git a/source/ui-stats.c b/source/ui-stats.c index 3960b14..55ed370 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -332,10 +332,10 @@ static void print_authors(struct string_list *authors, int max_rows, const struc size_t i, column, rows; long total; - html("\n"); + html("
Author
\n"); for (column = 0; column < labels->nr; column++) - htmlf("", labels->items[column].string); - html("\n"); + htmlf("", labels->items[column].string); + html("\n"); // The row count arrives through ofs, which carries -1 for "all". rows = (max_rows <= 0 || (size_t)max_rows > authors->nr) ? authors->nr : (size_t)max_rows; @@ -375,29 +375,28 @@ static void print_options_form(const struct cgit_period *period, int top) html("
\n"); html("stat options"); - html("
"); + html(""); cgit_add_hidden_formfields(1, 0, "stats"); - html("
Author%sTotal
%sTotal
\n"); + html("
"); if (ctx.repo->max_stats > 1) { choices = ctx.repo->max_stats; - html("
"); - html("\n"); + html("\n"); } - html(""); - html("\n"); - html("
Period:"); for (i = 0; i < choices; i++) html_option(cgit_fmt("%c", periods[i].code), periods[i].name, cgit_fmt("%c", period->code)); - html("
Authors:"); html_intoption(10, "10", top); html_intoption(25, "25", top); html_intoption(50, "50", top); html_intoption(100, "100", top); html_intoption(-1, "all", top); - html("
"); + html("\n"); html(""); - html("
"); + html(""); html("\n"); html("\n"); } -- cgit v2.8.0