diff options
| author | 2023-06-07 18:37:19 +0200 | |
|---|---|---|
| committer | 2023-06-07 18:37:19 +0200 | |
| commit | 22565f5c40b568aa68f8782614ffcc09130f03dc (patch) | |
| tree | 59abf32c3189d6fa721ee66206fbc900f03daa1e /html.c | |
| parent | Don't enqueue a request_replies message if it's already there. (diff) | |
| download | snac2-22565f5c40b568aa68f8782614ffcc09130f03dc.tar.gz snac2-22565f5c40b568aa68f8782614ffcc09130f03dc.tar.xz snac2-22565f5c40b568aa68f8782614ffcc09130f03dc.zip | |
New CSS classes snac-poll-form and snac-poll-result.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1001,7 +1001,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1001 | 1001 | ||
| 1002 | if (closed) { | 1002 | if (closed) { |
| 1003 | /* closed poll */ | 1003 | /* closed poll */ |
| 1004 | c = xs_str_cat(c, "<table>\n"); | 1004 | c = xs_str_cat(c, "<table class=\"snac-poll-result\">\n"); |
| 1005 | 1005 | ||
| 1006 | while (xs_list_iter(&p, &v)) { | 1006 | while (xs_list_iter(&p, &v)) { |
| 1007 | const char *name = xs_dict_get(v, "name"); | 1007 | 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, | |||
| 1025 | } | 1025 | } |
| 1026 | else { | 1026 | else { |
| 1027 | /* poll still active */ | 1027 | /* poll still active */ |
| 1028 | xs *s1 = xs_fmt("<form method=\"post\" action=\"%s/admin/vote\">\n" | 1028 | xs *s1 = xs_fmt("<form class=\"snac-poll-form\" method=\"post\" " |
| 1029 | "action=\"%s/admin/vote\">\n" | ||
| 1029 | "<input type=\"hidden\" name=\"actor\" value= \"%s\">\n" | 1030 | "<input type=\"hidden\" name=\"actor\" value= \"%s\">\n" |
| 1030 | "<input type=\"hidden\" name=\"irt\" value=\"%s\">\n", | 1031 | "<input type=\"hidden\" name=\"irt\" value=\"%s\">\n", |
| 1031 | snac->actor, actor, id); | 1032 | snac->actor, actor, id); |