- cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev,
- fullpath, 0, NULL, NULL);
+ cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev,
+ fullpath, 0, NULL, NULL, ctx.qry.showmsg);
+ if (ctx.repo->max_stats)
+ cgit_stats_link("stats", NULL, "button", ctx.qry.head,
+ fullpath);