summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-11-22 12:50:48 +0100
committerGravatar default2023-11-22 12:50:48 +0100
commit4e8beaab8fdd07b34150e347b72b14ce8d3ed778 (patch)
tree84f86b092afe3d964a1fb273fca20140dfe8443f
parentMore refactoring of html_people_list(). (diff)
downloadpenes-snac2-4e8beaab8fdd07b34150e347b72b14ce8d3ed778.tar.gz
penes-snac2-4e8beaab8fdd07b34150e347b72b14ce8d3ed778.tar.xz
penes-snac2-4e8beaab8fdd07b34150e347b72b14ce8d3ed778.zip
Some xs_html usage in html_notifications().
-rw-r--r--html.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/html.c b/html.c
index 6873e5a..daa73ab 100644
--- a/html.c
+++ b/html.c
@@ -1887,12 +1887,21 @@ xs_str *html_notifications(snac *snac)
1887 1887
1888 s = html_user_header(snac, s, 0); 1888 s = html_user_header(snac, s, 0);
1889 1889
1890 xs *s1 = xs_fmt( 1890 xs *clear_all_action = xs_fmt("%s/admin/clear-notifications", snac->actor);
1891 "<form autocomplete=\"off\" " 1891 xs_html *clear_all_form = xs_html_tag("form",
1892 "method=\"post\" action=\"%s/admin/clear-notifications\" id=\"clear\">\n" 1892 xs_html_attr("autocomplete", "off"),
1893 "<input type=\"submit\" class=\"snac-btn-like\" value=\"%s\">\n" 1893 xs_html_attr("method", "post"),
1894 "</form><p>\n", snac->actor, L("Clear all")); 1894 xs_html_attr("action", clear_all_action),
1895 s = xs_str_cat(s, s1); 1895 xs_html_attr("id", "clear"),
1896 xs_html_sctag("input",
1897 xs_html_attr("type", "submit"),
1898 xs_html_attr("class", "snac-btn-like"),
1899 xs_html_attr("value", L("Clear all"))));
1900
1901 {
1902 xs *s1 = xs_html_render(clear_all_form);
1903 s = xs_str_cat(s, s1);
1904 }
1896 1905
1897 while (xs_list_iter(&p, &v)) { 1906 while (xs_list_iter(&p, &v)) {
1898 xs *noti = notify_get(snac, v); 1907 xs *noti = notify_get(snac, v);