commit cb3bb90

default  ·  2024-10-19 15:56:17 +0000 UTC
parent e1df0d0
Tweaked HTML for the timeline pages.
1 files changed,  +7, -7
M html.c
M html.c
+7, -7
 1@@ -2259,13 +2259,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 2         }
 3     }
 4 
 5-    if (title) {
 6-        xs_html_add(body,
 7-            xs_html_tag("h2",
 8-                xs_html_attr("class", "snac-header"),
 9-                xs_html_text(title)));
10-    }
11-
12     xs_html_add(body,
13         xs_html_tag("a",
14             xs_html_attr("name", "snac-posts")));
15@@ -2273,6 +2266,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
16     xs_html *posts = xs_html_tag("div",
17         xs_html_attr("class", "snac-posts"));
18 
19+    if (title) {
20+        xs_html_add(posts,
21+            xs_html_tag("h2",
22+                xs_html_attr("class", "snac-header"),
23+                xs_html_text(title)));
24+    }
25+
26     xs_html_add(body,
27         posts);
28