diff --git a/html.c b/html.c index 397945b..609dd0b 100644 --- a/html.c +++ b/html.c @@ -766,7 +766,7 @@ xs_str *html_top_controls(snac *snac, xs_str *s) } -xs_str *html_button(xs_str *s, const char *clss, const char *label, const char *hint) +static xs_str *html_button(xs_str *s, const char *clss, const char *label, const char *hint) { xs *s1 = xs_fmt( "\n"); + xs *btn_form_action = xs_fmt("%s/admin/action", snac->actor); - xs *s1 = xs_fmt( - "
\n"); + xs_html_add(form, + html_button_2("mute", L("MUTE"), + L("Block any activity from this user"))); /* the post textarea */ xs *dm_form_id = xs_fmt("%s_%s_dm", md5, t); @@ -1821,14 +1847,14 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head xs_html_sctag("p", NULL))), xs_html_sctag("p", NULL)); + xs_html_add(snac_controls, dm_textarea); + { - xs *s1 = xs_html_render(dm_textarea); + xs *s1 = xs_html_render(snac_controls); s = xs_str_cat(s, s1); } s = xs_str_cat(s, "\n"); - - s = xs_str_cat(s, "\n"); } }