Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Let self_link's fallback be a plain reporevlink
Diffstat (limited to 'source')
-rw-r--r--source/ui-shared.c10
1 file changed, 2 insertions, 8 deletions
diff --git a/source/ui-shared.c b/source/ui-shared.c
index acd50f0..2d3d069 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -675,14 +675,8 @@ static void self_link(const char *name, const char *title, const char *class)
cgit_diff_link(name, title, class, ctx.qry.head, ctx.qry.oid, ctx.qry.oid2, ctx.qry.path);
else if (!strcmp(ctx.qry.page, "stats"))
cgit_stats_link(name, title, class, ctx.qry.head, ctx.qry.path);
- else {
- // A page name this switch does not know still gets a plain
- // repolink.
- repolink(title, class, ctx.qry.page, ctx.qry.head, ctx.qry.path);
- html("'>");
- html_txt(name);
- html("</a>");
- }
+ else
+ reporevlink(ctx.qry.page, name, title, class, ctx.qry.head, NULL, ctx.qry.path);
}
static void print_path_crumbs(char *path)