| -rw-r--r-- | ui-repolist.c | 8 | ||||
| -rw-r--r-- | ui-shared.c | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index ab050c7..725338b 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -131,7 +131,9 @@ void cgit_print_repolist() } htmlf("<tr><td class='%s'>", ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); - cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); + html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); + html_txt(ctx.repo->name); + html_link_close(); html("</td><td>"); html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); @@ -143,7 +145,9 @@ void cgit_print_repolist() html("</td>"); if (ctx.cfg.enable_index_links) { html("<td>"); - cgit_summary_link("summary", NULL, "button", NULL); + html_link_open(cgit_repourl(ctx.repo->url), + NULL, "button"); + html("summary</a>"); cgit_log_link("log", NULL, "button", NULL, NULL, NULL, 0, NULL, NULL); cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL); diff --git a/ui-shared.c b/ui-shared.c index 1fc5c09..ee3f6fe 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -603,7 +603,8 @@ void cgit_print_pageheader(struct cgit_context *ctx) if (ctx->repo) { cgit_index_link("index", NULL, NULL, NULL, 0); html(" : "); - cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, NULL); + reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), + ctx->qry.head, NULL, NULL); html("</td><td class='form'>"); html("<form method='get' action=''>\n"); add_hidden_formfields(0, 1, ctx->qry.page); @@ -631,8 +632,8 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("<table class='tabs'><tr><td>\n"); if (ctx->repo) { - cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, - ctx->qry.head); + reporevlink(NULL, "summary", NULL, hc(cmd, "summary"), + ctx->qry.head, NULL, NULL); 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, |