summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-10-05 15:16:36 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-10-05 15:16:36 (UTC)
commit49ecbbddf0659c6409befcfe8989f92196133cda (patch) (side-by-side diff)
tree3de50775a83ee69b7cb24034ac68ac538e27ed84
parente9d3bd544fe94ba5ade9ccf185328fcc2414814b (diff)
downloadcgit-49ecbbddf0659c6409befcfe8989f92196133cda.zip
cgit-49ecbbddf0659c6409befcfe8989f92196133cda.tar.gz
cgit-49ecbbddf0659c6409befcfe8989f92196133cda.tar.bz2
ui-repolist + ui-shared: Use cgit_summary_link()
This makes is possible to use cgit with repository urls containing special url characters like '#' and '?'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-repolist.c8
-rw-r--r--ui-shared.c7
2 files changed, 5 insertions, 10 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 725338b..ab050c7 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -133,5 +133,3 @@ void cgit_print_repolist()
ctx.repo->group ? "sublevel-repo" : "toplevel-repo");
- html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
- html_txt(ctx.repo->name);
- html_link_close();
+ cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
html("</td><td>");
@@ -147,5 +145,3 @@ void cgit_print_repolist()
html("<td>");
- html_link_open(cgit_repourl(ctx.repo->url),
- NULL, "button");
- html("summary</a>");
+ cgit_summary_link("summary", NULL, "button", NULL);
cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
diff --git a/ui-shared.c b/ui-shared.c
index ee3f6fe..1fc5c09 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -605,4 +605,3 @@ void cgit_print_pageheader(struct cgit_context *ctx)
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("</td><td class='form'>");
@@ -634,4 +633,4 @@ void cgit_print_pageheader(struct cgit_context *ctx)
if (ctx->repo) {
- reporevlink(NULL, "summary", NULL, hc(cmd, "summary"),
- ctx->qry.head, NULL, NULL);
+ cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL,
+ ctx->qry.head);
cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head,