commit 8ebad8d

default  ·  2024-05-24 10:24:23 +0000 UTC
parent a787c81
Minor list show tweaks.
1 files changed,  +8, -8
M html.c
M html.c
+8, -8
 1@@ -2059,13 +2059,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 2         xs_html_add(body,
 3             html_top_controls(user));
 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     /* show links to the available lists */
13     {
14         xs *lists = list_maint(user, NULL, 0); /* get list of lists */
15@@ -2091,6 +2084,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
16         }
17     }
18 
19+    if (title) {
20+        xs_html_add(body,
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         xs_html_tag("a",
28             xs_html_attr("name", "snac-posts")));
29@@ -2768,7 +2768,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
30             if (list != NULL) {
31                 xs *base = xs_fmt("/list/%s", lid);
32                 xs *name = list_maint(&snac, lid, 3);
33-                xs *title = xs_fmt(L("Showing timeline for list %s"), name);
34+                xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
35 
36                 *body = html_timeline(&snac, list, 0, skip, show,
37                     xs_list_len(next), title, base, 1);