summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-07 18:37:19 +0200
committerdefault <nobody@localhost>2023-06-07 18:37:19 +0200
commit22565f5c40b568aa68f8782614ffcc09130f03dc (patch)
tree59abf32c3189d6fa721ee66206fbc900f03daa1e
parentb77ef13d2cb9894a7b7814d47405b2c34b9f70f9 (diff)
New CSS classes snac-poll-form and snac-poll-result.
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 8bd6530..06c28bb 100644
--- a/html.c
+++ b/html.c
@@ -1001,7 +1001,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
if (closed) {
/* 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)) {
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 {
/* 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=\"irt\" value=\"%s\">\n",
snac->actor, actor, id);