]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add a 'stats' page to each repo
[ps-cgit] / ui-shared.c
index 224e5f3b2f3da88d89a0ea3034b9182cf7775cd7..0e688a0141a4a055a35774856aa26d1d8e8c4675 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->enable_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,