mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Some xs_html usage in html_notifications().
This commit is contained in:
parent
7236e15e8c
commit
4e8beaab8f
1 changed files with 15 additions and 6 deletions
19
html.c
19
html.c
|
@ -1887,12 +1887,21 @@ xs_str *html_notifications(snac *snac)
|
||||||
|
|
||||||
s = html_user_header(snac, s, 0);
|
s = html_user_header(snac, s, 0);
|
||||||
|
|
||||||
xs *s1 = xs_fmt(
|
xs *clear_all_action = xs_fmt("%s/admin/clear-notifications", snac->actor);
|
||||||
"<form autocomplete=\"off\" "
|
xs_html *clear_all_form = xs_html_tag("form",
|
||||||
"method=\"post\" action=\"%s/admin/clear-notifications\" id=\"clear\">\n"
|
xs_html_attr("autocomplete", "off"),
|
||||||
"<input type=\"submit\" class=\"snac-btn-like\" value=\"%s\">\n"
|
xs_html_attr("method", "post"),
|
||||||
"</form><p>\n", snac->actor, L("Clear all"));
|
xs_html_attr("action", clear_all_action),
|
||||||
|
xs_html_attr("id", "clear"),
|
||||||
|
xs_html_sctag("input",
|
||||||
|
xs_html_attr("type", "submit"),
|
||||||
|
xs_html_attr("class", "snac-btn-like"),
|
||||||
|
xs_html_attr("value", L("Clear all"))));
|
||||||
|
|
||||||
|
{
|
||||||
|
xs *s1 = xs_html_render(clear_all_form);
|
||||||
s = xs_str_cat(s, s1);
|
s = xs_str_cat(s, s1);
|
||||||
|
}
|
||||||
|
|
||||||
while (xs_list_iter(&p, &v)) {
|
while (xs_list_iter(&p, &v)) {
|
||||||
xs *noti = notify_get(snac, v);
|
xs *noti = notify_get(snac, v);
|
||||||
|
|
Loading…
Reference in a new issue