]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui-stats: replace 'enable-stats' setting with 'max-stats'
[ps-cgit] / ui-shared.c
index 224e5f3b2f3da88d89a0ea3034b9182cf7775cd7..97b9d462d9d6e44f73306b454265753326cc7c74 100644 (file)
@@ -641,6 +641,9 @@ void cgit_print_pageheader(struct cgit_context *ctx)
                                 ctx->qry.head, ctx->qry.sha1);
                cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
                               ctx->qry.sha1, ctx->qry.sha2, NULL);
+               if (ctx->repo->max_stats)
+                       reporevlink("stats", "stats", NULL, hc(cmd, "stats"),
+                                   ctx->qry.head, NULL, NULL);
                if (ctx->repo->readme)
                        reporevlink("about", "about", NULL,
                                    hc(cmd, "about"), ctx->qry.head, NULL,