From fa0b7c73250d52b7f6bfc8f3d9c52591d8932a0f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 30 Oct 2026 15:17:01 -0700 Subject: Let self_link's fallback be a plain reporevlink --- source/ui-shared.c | 10 ++-------- 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(""); - } + else + reporevlink(ctx.qry.page, name, title, class, ctx.qry.head, NULL, ctx.qry.path); } static void print_path_crumbs(char *path) -- cgit 2.12.1