diff options
| author | patrick-scho | 2025-12-01 01:59:46 +0100 |
|---|---|---|
| committer | patrick-scho | 2025-12-01 01:59:46 +0100 |
| commit | 357dd95ce891587eccbcd31c9cc182580510368f (patch) | |
| tree | 1507ad66c239dfb5c41a334aa219159846213736 /ui-shared.c | |
| parent | a106c3d217f9d0f4b8433df19997ecb269608223 (diff) | |
| download | ps-cgit-357dd95ce891587eccbcd31c9cc182580510368f.tar.gz ps-cgit-357dd95ce891587eccbcd31c9cc182580510368f.zip | |
new type of tree link
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c index 9f28b20..8cfdb35 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -342,6 +342,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("</td><td class='form'>"); html("<form method='get'>\n"); @@ -1039,7 +1045,7 @@ void cgit_print_pageheader(void) cgit_blame_link("blame", NULL, hc("blame"), ctx.qry.head, ctx.qry.sha1, ctx.qry.vpath); else - cgit_tree_link("tree", NULL, hc("tree"), ctx.qry.head, + cgit_tree_link_no_page("tree", NULL, hc("tree"), ctx.qry.head, ctx.qry.sha1, ctx.qry.vpath); cgit_summary_link("summary", NULL, hc("summary"), ctx.qry.head); |
