commit 0f42fbf
default
·
2024-10-23 07:43:38 +0000 UTC
parent 6a971af
More HTML tweaks.
1 files changed,
+8,
-8
M
html.c
M
html.c
+8,
-8
1@@ -2562,6 +2562,10 @@ xs_str *html_notifications(snac *user, int skip, int show)
2 xs_html *noti_new = NULL;
3 xs_html *noti_seen = NULL;
4
5+ xs_html *posts = xs_html_tag("div",
6+ xs_html_attr("name", "snac-posts"));
7+ xs_html_add(body, posts);
8+
9 xs_list *p = n_list;
10 const xs_str *v;
11 while (xs_list_iter(&p, &v)) {
12@@ -2661,10 +2665,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
13 xs_html_attr("class", "snac-header"),
14 xs_html_text(L("New"))));
15
16- xs_html_add(body,
17- xs_html_tag("div",
18- xs_html_attr("class", "snac-posts"),
19- noti_new));
20+ xs_html_add(posts,
21+ noti_new);
22 }
23
24 xs_html_add(noti_new,
25@@ -2678,10 +2680,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
26 xs_html_attr("class", "snac-header"),
27 xs_html_text(L("Already seen"))));
28
29- xs_html_add(body,
30- xs_html_tag("div",
31- xs_html_attr("class", "snac-posts"),
32- noti_seen));
33+ xs_html_add(posts,
34+ noti_seen);
35 }
36
37 xs_html_add(noti_seen,