X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/44b208aa44c4cdf7e1e339bbd5b028c23da55a46..49ecbbddf0659c6409befcfe8989f92196133cda:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index 2eddd2d..1fc5c09 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -257,6 +257,11 @@ static void reporevlink(char *page, char *name, char *title, char *class, html(""); } +void cgit_summary_link(char *name, char *title, char *class, char *head) +{ + reporevlink(NULL, name, title, class, head, NULL, NULL); +} + void cgit_tree_link(char *name, char *title, char *class, char *head, char *rev, char *path) { @@ -598,8 +603,7 @@ void cgit_print_pageheader(struct cgit_context *ctx) if (ctx->repo) { cgit_index_link("index", NULL, NULL, NULL, 0); html(" : "); - reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), - ctx->qry.head, NULL, NULL); + cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, NULL); html("