abouttreesummaryrefslogcommitdiff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorPatrick2026-01-11 17:35:46 +0100
committerPatrick2026-01-11 17:35:46 +0100
commit73474fa40571ef6ab13a1e0d065a21df92c21009 (patch)
treeb5df05249bde5610c30fd8daf759e554f0de969f /ui-shared.c
parentcb731e707285f5dd7289bd4e29fdc2e65c0279fa (diff)
downloadps-cgit-73474fa40571ef6ab13a1e0d065a21df92c21009.tar.gz
ps-cgit-73474fa40571ef6ab13a1e0d065a21df92c21009.zip
fix About page and readme selection
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c3
1 files changed, 2 insertions, 1 deletions
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("<table class='tabs'><tr><td>\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);