summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
2562 xs_html *noti_new = NULL; 2562 xs_html *noti_new = NULL;
2563 xs_html *noti_seen = NULL; 2563 xs_html *noti_seen = NULL;
2564 2564
2565 xs_html *posts = xs_html_tag("div",
2566 xs_html_attr("name", "snac-posts"));
2567 xs_html_add(body, posts);
2568
2565 xs_list *p = n_list; 2569 xs_list *p = n_list;
2566 const xs_str *v; 2570 const xs_str *v;
2567 while (xs_list_iter(&p, &v)) { 2571 while (xs_list_iter(&p, &v)) {
@@ -2661,10 +2665,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
2661 xs_html_attr("class", "snac-header"), 2665 xs_html_attr("class", "snac-header"),
2662 xs_html_text(L("New")))); 2666 xs_html_text(L("New"))));
2663 2667
2664 xs_html_add(body, 2668 xs_html_add(posts,
2665 xs_html_tag("div", 2669 noti_new);
2666 xs_html_attr("class", "snac-posts"),
2667 noti_new));
2668 } 2670 }
2669 2671
2670 xs_html_add(noti_new, 2672 xs_html_add(noti_new,
@@ -2678,10 +2680,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
2678 xs_html_attr("class", "snac-header"), 2680 xs_html_attr("class", "snac-header"),
2679 xs_html_text(L("Already seen")))); 2681 xs_html_text(L("Already seen"))));
2680 2682
2681 xs_html_add(body, 2683 xs_html_add(posts,
2682 xs_html_tag("div", 2684 noti_seen);
2683 xs_html_attr("class", "snac-posts"),
2684 noti_seen));
2685 } 2685 }
2686 2686
2687 xs_html_add(noti_seen, 2687 xs_html_add(noti_seen,