aboutsummaryrefslogtreecommitdiffstats
path: root/ui-stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-stats.c')
-rw-r--r--ui-stats.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 09b3625..8b7e70c 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -309,13 +309,13 @@ static void print_authors(struct string_list *authors, int top,
309 for (i = 1; i < period->count; i++) 309 for (i = 1; i < period->count; i++)
310 period->dec(&tm); 310 period->dec(&tm);
311 311
312 html("<table class='stats'><tr><th>Author</th>"); 312 html("<table class='stats'><tr><th>author</th>");
313 for (j = 0; j < period->count; j++) { 313 for (j = 0; j < period->count; j++) {
314 tmp = period->pretty(&tm); 314 tmp = period->pretty(&tm);
315 htmlf("<th>%s</th>", tmp); 315 htmlf("<th>%s</th>", tmp);
316 period->inc(&tm); 316 period->inc(&tm);
317 } 317 }
318 html("<th>Total</th></tr>\n"); 318 html("<th>total</th></tr>\n");
319 319
320 if (top <= 0 || top > authors->nr) 320 if (top <= 0 || top > authors->nr)
321 top = authors->nr; 321 top = authors->nr;
@@ -348,7 +348,7 @@ static void print_authors(struct string_list *authors, int top,
348 print_combined_authorrow(authors, top, authors->nr - 1, 348 print_combined_authorrow(authors, top, authors->nr - 1,
349 "Others (%ld)", "left", "", "sum", period); 349 "Others (%ld)", "left", "", "sum", period);
350 350
351 print_combined_authorrow(authors, 0, authors->nr - 1, "Total", 351 print_combined_authorrow(authors, 0, authors->nr - 1, "total",
352 "total", "sum", "sum", period); 352 "total", "sum", "sum", period);
353 html("</table>"); 353 html("</table>");
354} 354}
@@ -393,14 +393,14 @@ void cgit_show_stats(void)
393 cgit_add_hidden_formfields(1, 0, "stats"); 393 cgit_add_hidden_formfields(1, 0, "stats");
394 html("<table><tr><td colspan='2'/></tr>"); 394 html("<table><tr><td colspan='2'/></tr>");
395 if (ctx.repo->max_stats > 1) { 395 if (ctx.repo->max_stats > 1) {
396 html("<tr><td class='label'>Period:</td>"); 396 html("<tr><td class='label'>period:</td>");
397 html("<td class='ctrl'><select name='period' onchange='this.form.submit();'>"); 397 html("<td class='ctrl'><select name='period' onchange='this.form.submit();'>");
398 for (i = 0; i < ctx.repo->max_stats; i++) 398 for (i = 0; i < ctx.repo->max_stats; i++)
399 html_option(fmt("%c", periods[i].code), 399 html_option(fmt("%c", periods[i].code),
400 periods[i].name, fmt("%c", period->code)); 400 periods[i].name, fmt("%c", period->code));
401 html("</select></td></tr>"); 401 html("</select></td></tr>");
402 } 402 }
403 html("<tr><td class='label'>Authors:</td>"); 403 html("<tr><td class='label'>authors:</td>");
404 html("<td class='ctrl'><select name='ofs' onchange='this.form.submit();'>"); 404 html("<td class='ctrl'><select name='ofs' onchange='this.form.submit();'>");
405 html_intoption(10, "10", top); 405 html_intoption(10, "10", top);
406 html_intoption(25, "25", top); 406 html_intoption(25, "25", top);
@@ -413,7 +413,7 @@ void cgit_show_stats(void)
413 html("</td></tr></table>"); 413 html("</td></tr></table>");
414 html("</form>"); 414 html("</form>");
415 html("</div>"); 415 html("</div>");
416 htmlf("<h2>Commits per author per %s", period->name); 416 htmlf("<h2>commits per author per %s", period->name);
417 if (ctx.qry.path) { 417 if (ctx.qry.path) {
418 html(" (path '"); 418 html(" (path '");
419 html_txt(ctx.qry.path); 419 html_txt(ctx.qry.path);