diff options
author | justanothercatgirl <sotov@twistea.su> | 2025-04-02 21:00:51 +0200 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2025-04-02 21:00:51 +0200 |
commit | d946c8cf11385f5766e827ae71b3fc798750a335 (patch) | |
tree | 52105e039563e264cbaf84a0bda6cd1df7945b30 /ui-shared.c | |
parent | 09d24d7cd0b7e85633f2f43808b12871bb209d69 (diff) |
Note: currently breaks repos that contain no readme
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 6fae72d..82c6ca3 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -330,10 +330,23 @@ static void reporevlink(const char *page, const char *name, const char *title, html("</a>"); } +void cgit_reporevlink(const char *page, const char *name, const char *title, + const char *class, const char *head, const char *rev, + const char *path) +{ + reporevlink(page, name, title, class, head, rev, path); +} + +void cgit_about_link(const char *name, const char *title, const char *class, + const char *head) +{ + reporevlink("about", name, title, class, head, NULL, NULL); +} + void cgit_summary_link(const char *name, const char *title, const char *class, const char *head) { - reporevlink(NULL, name, title, class, head, NULL, NULL); + reporevlink("summary", name, title, class, head, NULL, NULL); } void cgit_tag_link(const char *name, const char *title, const char *class, |