mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 17:23:38 +00:00
Show current vote count on mouseover.
This commit is contained in:
parent
fa2d818c41
commit
31fff8bf19
1 changed files with 5 additions and 2 deletions
7
html.c
7
html.c
|
@ -1220,13 +1220,16 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
|
|||
|
||||
while (xs_list_iter(&p, &v)) {
|
||||
const char *name = xs_dict_get(v, "name");
|
||||
const xs_dict *replies = xs_dict_get(v, "replies");
|
||||
|
||||
if (name) {
|
||||
int nr = xs_number_get(xs_dict_get(replies, "totalItems"));
|
||||
xs *es1 = encode_html(name);
|
||||
xs *opt = xs_fmt("<input type=\"%s\""
|
||||
" id=\"%s\" value=\"%s\" name=\"question\"> %s<br>\n",
|
||||
" id=\"%s\" value=\"%s\""
|
||||
" name=\"question\"> <span title=\"%d\">%s</span><br>\n",
|
||||
!xs_is_null(oo) ? "radio" : "checkbox",
|
||||
es1, es1, es1);
|
||||
es1, es1, nr, es1);
|
||||
|
||||
s1 = xs_str_cat(s1, opt);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue