commit fa8b401
default
·
2024-05-08 02:15:36 +0000 UTC
parent 2322de4
More HTML simplification.
1 files changed,
+3,
-10
M
html.c
M
html.c
+3,
-10
1@@ -509,7 +509,7 @@ xs_html *html_instance_head(void)
2 }
3
4
5-static xs_html *html_instance_body(char *title)
6+static xs_html *html_instance_body(void)
7 {
8 char *host = xs_dict_get(srv_config, "host");
9 char *sdesc = xs_dict_get(srv_config, "short_description");
10@@ -560,13 +560,6 @@ static xs_html *html_instance_body(char *title)
11 xs_html_text(handle)))));
12 }
13
14- if (title != NULL) {
15- xs_html_add(body,
16- xs_html_tag("h2",
17- xs_html_attr("class", "snac-header"),
18- xs_html_text(title)));
19- }
20-
21 return body;
22 }
23
24@@ -2023,7 +2016,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
25 }
26 else {
27 head = html_instance_head();
28- body = html_instance_body(title);
29+ body = html_instance_body();
30 }
31
32 xs_html *html = xs_html_tag("html",
33@@ -2034,7 +2027,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
34 xs_html_add(body,
35 html_top_controls(user));
36
37- if (user && title) {
38+ if (title) {
39 xs_html_add(body,
40 xs_html_tag("h2",
41 xs_html_attr("class", "snac-header"),