From fa8b40192757a2022da1cc945e4d0c3c1dc014b2 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 8 May 2024 04:15:36 +0200 Subject: [PATCH] More HTML simplification. --- html.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/html.c b/html.c index 5521a9f..27fc713 100644 --- a/html.c +++ b/html.c @@ -509,7 +509,7 @@ xs_html *html_instance_head(void) } -static xs_html *html_instance_body(char *title) +static xs_html *html_instance_body(void) { char *host = xs_dict_get(srv_config, "host"); char *sdesc = xs_dict_get(srv_config, "short_description"); @@ -560,13 +560,6 @@ static xs_html *html_instance_body(char *title) xs_html_text(handle))))); } - if (title != NULL) { - xs_html_add(body, - xs_html_tag("h2", - xs_html_attr("class", "snac-header"), - xs_html_text(title))); - } - return body; } @@ -2023,7 +2016,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, } else { head = html_instance_head(); - body = html_instance_body(title); + body = html_instance_body(); } xs_html *html = xs_html_tag("html", @@ -2034,7 +2027,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, xs_html_add(body, html_top_controls(user)); - if (user && title) { + if (title) { xs_html_add(body, xs_html_tag("h2", xs_html_attr("class", "snac-header"),