diff options
| -rw-r--r-- | html.c | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -1346,6 +1346,7 @@ xs_html *html_top_controls(snac *user) | |||
| 1346 | const char *latitude = xs_dict_get_def(user->config, "latitude", ""); | 1346 | const char *latitude = xs_dict_get_def(user->config, "latitude", ""); |
| 1347 | const char *longitude = xs_dict_get_def(user->config, "longitude", ""); | 1347 | const char *longitude = xs_dict_get_def(user->config, "longitude", ""); |
| 1348 | const char *webhook = xs_dict_get_def(user->config, "notify_webhook", ""); | 1348 | const char *webhook = xs_dict_get_def(user->config, "notify_webhook", ""); |
| 1349 | const char *post_langs = xs_dict_get_def(user->config, "post_langs", ""); | ||
| 1349 | 1350 | ||
| 1350 | xs *metadata = NULL; | 1351 | xs *metadata = NULL; |
| 1351 | const xs_dict *md = xs_dict_get(user->config, "metadata"); | 1352 | const xs_dict *md = xs_dict_get(user->config, "metadata"); |
| @@ -1622,6 +1623,15 @@ xs_html *html_top_controls(snac *user) | |||
| 1622 | tz_select), | 1623 | tz_select), |
| 1623 | 1624 | ||
| 1624 | xs_html_tag("p", | 1625 | xs_html_tag("p", |
| 1626 | xs_html_text(L("Languages you usually post in:")), | ||
| 1627 | xs_html_sctag("br", NULL), | ||
| 1628 | xs_html_sctag("input", | ||
| 1629 | xs_html_attr("type", "next"), | ||
| 1630 | xs_html_attr("name", "post_langs"), | ||
| 1631 | xs_html_attr("value", post_langs), | ||
| 1632 | xs_html_attr("placeholder", L("en fr es de_AT")))), | ||
| 1633 | |||
| 1634 | xs_html_tag("p", | ||
| 1625 | xs_html_text(L("New password:")), | 1635 | xs_html_text(L("New password:")), |
| 1626 | xs_html_sctag("br", NULL), | 1636 | xs_html_sctag("br", NULL), |
| 1627 | xs_html_sctag("input", | 1637 | xs_html_sctag("input", |
| @@ -4924,6 +4934,8 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 4924 | snac.config = xs_dict_set(snac.config, "lang", v); | 4934 | snac.config = xs_dict_set(snac.config, "lang", v); |
| 4925 | if ((v = xs_dict_get(p_vars, "tz")) != NULL) | 4935 | if ((v = xs_dict_get(p_vars, "tz")) != NULL) |
| 4926 | snac.config = xs_dict_set(snac.config, "tz", v); | 4936 | snac.config = xs_dict_set(snac.config, "tz", v); |
| 4937 | if ((v = xs_dict_get(p_vars, "post_langs")) != NULL) | ||
| 4938 | snac.config = xs_dict_set(snac.config, "post_langs", v); | ||
| 4927 | 4939 | ||
| 4928 | snac.config = xs_dict_set(snac.config, "latitude", xs_dict_get_def(p_vars, "latitude", "")); | 4940 | snac.config = xs_dict_set(snac.config, "latitude", xs_dict_get_def(p_vars, "latitude", "")); |
| 4929 | snac.config = xs_dict_set(snac.config, "longitude", xs_dict_get_def(p_vars, "longitude", "")); | 4941 | snac.config = xs_dict_set(snac.config, "longitude", xs_dict_get_def(p_vars, "longitude", "")); |