diff options
| author | 2024-10-23 09:43:38 +0200 | |
|---|---|---|
| committer | 2024-10-23 09:43:38 +0200 | |
| commit | 0f42fbf854d195b28616339e58e347e9cf42b409 (patch) | |
| tree | 322b0cc4696754df354edb4a740cea291accbba3 | |
| parent | Updated documentation. (diff) | |
| download | penes-snac2-0f42fbf854d195b28616339e58e347e9cf42b409.tar.gz penes-snac2-0f42fbf854d195b28616339e58e347e9cf42b409.tar.xz penes-snac2-0f42fbf854d195b28616339e58e347e9cf42b409.zip | |
More HTML tweaks.
| -rw-r--r-- | html.c | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -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, |