From 1b5c336cc99f01a0f8d6668cbfc9273f49a6be25 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 7 Mar 2011 00:00:24 +0100 Subject: ui-stats.c: create a control panel for stat options Signed-off-by: Lars Hjemli --- ui-stats.c | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/ui-stats.c b/ui-stats.c index 2a0c174..36e17d9 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -386,6 +386,33 @@ void cgit_show_stats(struct cgit_context *ctx) top = ctx->qry.ofs; if (!top) top = 10; + + html("
"); + html("stat options"); + html("
"); + cgit_add_hidden_formfields(1, 0, "stats"); + html(""); + if (ctx->repo->max_stats > 1) { + html(""); + html(""); + } + html(""); + html(""); + html("
Period:
Authors:
"); + html(""); + html("
"); + html("
"); + html("
"); htmlf("

Commits per author per %s", period->name); if (ctx->qry.path) { html(" (path '"); @@ -393,30 +420,6 @@ void cgit_show_stats(struct cgit_context *ctx) html("')"); } html("

"); - - html("
"); - cgit_add_hidden_formfields(1, 0, "stats"); - if (ctx->repo->max_stats > 1) { - html("Period: "); - html("

"); - } - html("Authors: "); - html(""); - html(""); - html(""); - html("
"); print_authors(&authors, top, period); } -- cgit 1.4.1-21-gabe81