From 19eb230484f8bba0e1d980e8f28f61818d8489a0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:22:58 -0700 Subject: Let self_link's fallback be a plain reporevlink --- source/ui-shared.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source/ui-shared.c') 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(""); - } + else + reporevlink(ctx.qry.page, name, title, class, ctx.qry.head, NULL, ctx.qry.path); } static void print_path_crumbs(char *path) -- cgit