X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/69f705cf5727cc1f099f6cd6af759f66bfd9a343..fdfb6a6d802d6b91061296eda9848d5819760d01:/ui-stats.c diff --git a/ui-stats.c b/ui-stats.c index 946a6ea..59f4c1e 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -1,5 +1,3 @@ -#include - #include "cgit.h" #include "html.h" #include "ui-shared.h" @@ -388,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 '"); @@ -395,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); }