From 837d464af77d76a2661d92e05167657cbf430d80 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 07 Dec 2008 12:34:42 +0000 Subject: ui-tree: add link to stats page per path Signed-off-by: Lars Hjemli --- (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index 79332fc..e27e796 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -107,6 +107,9 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, html(""); cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, fullpath, 0, NULL, NULL); + if (ctx.repo->max_stats) + cgit_stats_link("stats", NULL, "button", ctx.qry.head, + fullpath); html("\n"); free(name); return 0; -- cgit v0.9.0.2