From 73474fa40571ef6ab13a1e0d065a21df92c21009 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 11 Jan 2026 17:35:46 +0100 Subject: fix About page and readme selection --- ui-shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index e352c33..9d8dfef 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -8,6 +8,7 @@ #include "cgit.h" #include "ui-shared.h" +#include "ui-summary.h" #include "cmd.h" #include "html.h" #include "version.h" @@ -1037,7 +1038,7 @@ void cgit_print_pageheader(void) html("
| \n"); if (ctx.env.authenticated && ctx.repo) { - if (ctx.repo->readme.nr) + if (cgit_has_readme()) reporevlink("about", "about", NULL, hc("about"), ctx.qry.head, NULL, NULL); -- cgit v1.2.3 |