From e98df3a0ede3ce8315e2beb5421cbd7c353a07f5 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:56:45 -0700 Subject: Write the repository list's description link inline --- source/html.c | 20 -------------------- source/html.h | 2 -- source/ui-repolist.c | 6 ++++-- 3 files changed, 4 insertions(+), 24 deletions(-) (limited to 'source') diff --git a/source/html.c b/source/html.c index 48f7a88..94758e5 100644 --- a/source/html.c +++ b/source/html.c @@ -504,26 +504,6 @@ void html_intoption(int value, const char *text, int selected_value) html("\n"); } -void html_link_open(const char *url, const char *title, const char *class) -{ - html(""); -} - -void html_link_close(void) -{ - html(""); -} - void html_include(const char *filename) { FILE *f; diff --git a/source/html.h b/source/html.h index e962a53..1b20cdb 100644 --- a/source/html.h +++ b/source/html.h @@ -94,8 +94,6 @@ extern char *cgit_fmt(const char *format, ...); extern void html_option(const char *value, const char *text, const char *selected_value); extern void html_intoption(int value, const char *text, int selected_value); -extern void html_link_open(const char *url, const char *title, const char *class); -extern void html_link_close(void); extern void html_include(const char *filename); extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); diff --git a/source/ui-repolist.c b/source/ui-repolist.c index 7e9c167..001e51b 100644 --- a/source/ui-repolist.c +++ b/source/ui-repolist.c @@ -224,11 +224,13 @@ static void print_repo_row(const char *currenturl, int sublevel) cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); html(""); repourl = cgit_repourl(ctx.repo->url); - html_link_open(repourl, NULL, NULL); + html(""); free(repourl); if (html_ntxt(ctx.repo->desc, ctx.cfg.max_repodesc_len) < 0) html("..."); - html_link_close(); + html(""); html(""); if (ctx.cfg.enable_index_owner) { html(""); -- cgit