mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
New CSS classes snac-poll-form and snac-poll-result.
This commit is contained in:
parent
b77ef13d2c
commit
22565f5c40
1 changed files with 3 additions and 2 deletions
5
html.c
5
html.c
|
@ -1001,7 +1001,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
|
||||||
|
|
||||||
if (closed) {
|
if (closed) {
|
||||||
/* closed poll */
|
/* closed poll */
|
||||||
c = xs_str_cat(c, "<table>\n");
|
c = xs_str_cat(c, "<table class=\"snac-poll-result\">\n");
|
||||||
|
|
||||||
while (xs_list_iter(&p, &v)) {
|
while (xs_list_iter(&p, &v)) {
|
||||||
const char *name = xs_dict_get(v, "name");
|
const char *name = xs_dict_get(v, "name");
|
||||||
|
@ -1025,7 +1025,8 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* poll still active */
|
/* poll still active */
|
||||||
xs *s1 = xs_fmt("<form method=\"post\" action=\"%s/admin/vote\">\n"
|
xs *s1 = xs_fmt("<form class=\"snac-poll-form\" method=\"post\" "
|
||||||
|
"action=\"%s/admin/vote\">\n"
|
||||||
"<input type=\"hidden\" name=\"actor\" value= \"%s\">\n"
|
"<input type=\"hidden\" name=\"actor\" value= \"%s\">\n"
|
||||||
"<input type=\"hidden\" name=\"irt\" value=\"%s\">\n",
|
"<input type=\"hidden\" name=\"irt\" value=\"%s\">\n",
|
||||||
snac->actor, actor, id);
|
snac->actor, actor, id);
|
||||||
|
|
Loading…
Reference in a new issue