X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/cf61ad411c41a774c9671651704bdeb78ccc1036..f86a23ff537258d36bf8f1876fa7a4bede6673d8:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 9b120ae..0e688a0 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -629,7 +629,8 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("
| \n"); if (ctx->repo) { - cgit_summary_link("summary", NULL, NULL, ctx->qry.head); + cgit_summary_link("summary", NULL, hc(cmd, "summary"), + ctx->qry.head); cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head, ctx->qry.sha1, NULL); cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head, @@ -640,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, |