summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-24 12:24:23 +0200
committerdefault <nobody@localhost>2024-05-24 12:24:23 +0200
commit8ebad8d536dfdcec568e3a926e3c8796a0305ab5 (patch)
tree611012a72e8ac51184d91b6ffa8089d21ecf2dab /html.c
parenta787c818b2c52b5bf30d13bb8f3490a92dd8bdcb (diff)
Minor list show tweaks.
Diffstat (limited to 'html.c')
-rw-r--r--html.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/html.c b/html.c
index a9b82da..e77771f 100644
--- a/html.c
+++ b/html.c
@@ -2059,13 +2059,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
xs_html_add(body,
html_top_controls(user));
- if (title) {
- xs_html_add(body,
- xs_html_tag("h2",
- xs_html_attr("class", "snac-header"),
- xs_html_text(title)));
- }
-
/* show links to the available lists */
{
xs *lists = list_maint(user, NULL, 0); /* get list of lists */
@@ -2091,6 +2084,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
}
}
+ if (title) {
+ xs_html_add(body,
+ xs_html_tag("h2",
+ xs_html_attr("class", "snac-header"),
+ xs_html_text(title)));
+ }
+
xs_html_add(body,
xs_html_tag("a",
xs_html_attr("name", "snac-posts")));
@@ -2768,7 +2768,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
if (list != NULL) {
xs *base = xs_fmt("/list/%s", lid);
xs *name = list_maint(&snac, lid, 3);
- xs *title = xs_fmt(L("Showing timeline for list %s"), name);
+ xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
*body = html_timeline(&snac, list, 0, skip, show,
xs_list_len(next), title, base, 1);