X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/65b7b876aaaf50fc15060533359d6561f4f1819a..837d464af77d76a2661d92e05167657cbf430d80:/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;