From 357dd95ce891587eccbcd31c9cc182580510368f Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Mon, 1 Dec 2025 01:59:46 +0100 Subject: new type of tree link --- ui-shared.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 9f28b20..8cfdb35 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -341,6 +341,12 @@ void cgit_tag_link(const char *name, const char *title, const char *class, void cgit_tree_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) +{ + reporevlink("tree", name, title, class, head, rev, path); +} + +void cgit_tree_link_no_page(const char *name, const char *title, const char *class, + const char *head, const char *rev, const char *path) { reporevlink(NULL, name, title, class, head, rev, path); } @@ -994,7 +1000,7 @@ static void print_header(void) if (ctx.repo) { cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); html(" : "); - cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); + cgit_tree_link(ctx.repo->name, ctx.repo->name, NULL, NULL, NULL, NULL); if (ctx.env.authenticated) { html("