aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-10-23 09:43:38 +0200
committerdefault <nobody@localhost>2024-10-23 09:43:38 +0200
commit0f42fbf854d195b28616339e58e347e9cf42b409 (patch)
tree322b0cc4696754df354edb4a740cea291accbba3 /html.c
parent6a971af20c61c08429ce12993393b35ee9f85457 (diff)
More HTML 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 49be160..8207cbb 100644
--- a/html.c
+++ b/html.c
@@ -2562,6 +2562,10 @@ xs_str *html_notifications(snac *user, int skip, int show)
xs_html *noti_new = NULL;
xs_html *noti_seen = NULL;
+ xs_html *posts = xs_html_tag("div",
+ xs_html_attr("name", "snac-posts"));
+ xs_html_add(body, posts);
+
xs_list *p = n_list;
const xs_str *v;
while (xs_list_iter(&p, &v)) {
@@ -2661,10 +2665,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
xs_html_attr("class", "snac-header"),
xs_html_text(L("New"))));
- xs_html_add(body,
- xs_html_tag("div",
- xs_html_attr("class", "snac-posts"),
- noti_new));
+ xs_html_add(posts,
+ noti_new);
}
xs_html_add(noti_new,
@@ -2678,10 +2680,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
xs_html_attr("class", "snac-header"),
xs_html_text(L("Already seen"))));
- xs_html_add(body,
- xs_html_tag("div",
- xs_html_attr("class", "snac-posts"),
- noti_seen));
+ xs_html_add(posts,
+ noti_seen);
}
xs_html_add(noti_seen,