Parcourir la source

Moved "Closed" poll string to where it belongs.

default il y a 3 ans
Parent
commit
27218d06d8
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      html.c

+ 6 - 0
html.c

@@ -939,6 +939,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
                 }
                 }
 
 
                 c = xs_str_cat(c, "</table>\n");
                 c = xs_str_cat(c, "</table>\n");
+
+                /* if it's *really* closed, say it */
+                if (!xs_is_null(xs_dict_get(msg, "closed"))) {
+                    xs *s1 = xs_fmt("<p>%s</p>\n", L("Closed"));
+                    c = xs_str_cat(c, s1);
+                }
             }
             }
             else {
             else {
                 /* poll still active */
                 /* poll still active */