From b54ef9749c083afd86573112fad3b3ed8ee2d0e4 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 7 Dec 2008 15:57:55 +0100 Subject: ui-stats.c: reuse cgit_add_hidden_formfields() This makes sure that the currect branch and path is preserved when changing the stats period or author count. Signed-off-by: Lars Hjemli --- ui-stats.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui-stats.c b/ui-stats.c index 1104485..9fc06d3 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -382,9 +382,8 @@ void cgit_show_stats(struct cgit_context *ctx) } html(""); - html("
"); - if (strcmp(ctx->qry.head, ctx->repo->defbranch)) - htmlf("", ctx->qry.head); + html(""); + cgit_add_hidden_formfields(1, 0, "stats"); if (ctx->repo->max_stats > 1) { html("Period: "); html("
Commit message (Expand)Author
2017-07-21Set window size in hnelJune McEnroe
2017-07-21Add hnelJune McEnroe
2017-07-19chmod 600 in dtchJune McEnroe='/catsit/commit/daemon.c?h=1.4&id=bdcb9ab46fa5b2e86c9d7253523dea5f4fd43d38&follow=1'>OpenBSD: Simplify pledge(2) and unveil(2) strategyJune McEnroe
2021-09-25Fix inverted exec prepend logicJune McEnroe
2021-05-19Remove freenodeJune McEnroe
2021-03-01Skip leading whitespace on prepends and commands 1.3June McEnroe
2021-03-01Only prepend exec if command line doesn't contain ;&|()June McEnroe
2021-03-01Exit with EX_TEMPFAIL when watching filesJune McEnroe
2021-02-27Add -d flag to catsit-watchJune McEnroe
2021-02-27Add -a to catsit-watchJune McEnroe
2021-02-25Add catsit-timer utilityJune McEnroe
2021-02-25Add catsit-watch utilityJune McEnroe
2021-02-01Drop pledge privileges after daemonization 1.2June McEnroe
2021-02-01Remove use of "%n"June McEnroe
2021-02-01Check signals first in the loopJune McEnroe
2020-12-15Log a message when stopping a service waiting to restart 1.1June McEnroe
2020-11-10Refactor unveil calls so errors can be reported properlyJune McEnroe
2020-10-27Do not increment signalsJune McEnroe
2020-10-23Only look up group if one is namedJune McEnroe
2020-10-23Remove default defines of RUNDIR, ETCDIRJune McEnroe
2020-10-23Set shell scripts executable in buildJune McEnroe
2020-10-20Humanize milliseconds if interval is less than 1sJune McEnroe
2020-10-20Humanize restart intervalJune McEnroe
2020-08-17Document default catsit.conf location on OpenBSD 1.0June McEnroe
2020-08-17Template catsit script with RUNDIRJune McEnroe
2020-08-17Clean up includesJune McEnroe
2020-08-17Log service uptime in statusJune McEnroe