diff options
| author | 2023-11-22 14:40:16 +0100 | |
|---|---|---|
| committer | 2023-11-22 14:40:16 +0100 | |
| commit | 1466331abee11962e1d923d0a1017f5eed1fa5de (patch) | |
| tree | 7560d74981993e3db427002aba4eba9ff91c1917 /html.c | |
| parent | More work in dm_textarea towards a generic html_note(). (diff) | |
| download | snac2-1466331abee11962e1d923d0a1017f5eed1fa5de.tar.gz snac2-1466331abee11962e1d923d0a1017f5eed1fa5de.tar.xz snac2-1466331abee11962e1d923d0a1017f5eed1fa5de.zip | |
Minor xs_html tweaks.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -1807,7 +1807,7 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head | |||
| 1807 | xs_html_tag("details", | 1807 | xs_html_tag("details", |
| 1808 | xs_html_tag("summary", | 1808 | xs_html_tag("summary", |
| 1809 | xs_html_text(L("Direct Message..."))), | 1809 | xs_html_text(L("Direct Message..."))), |
| 1810 | xs_html_sctag("p", NULL), | 1810 | xs_html_tag("p", NULL), |
| 1811 | xs_html_tag("div", | 1811 | xs_html_tag("div", |
| 1812 | xs_html_attr("class", "snac-note"), | 1812 | xs_html_attr("class", "snac-note"), |
| 1813 | xs_html_attr("id", dm_div_id), | 1813 | xs_html_attr("id", dm_div_id), |
| @@ -1829,11 +1829,11 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head | |||
| 1829 | xs_html_attr("type", "hidden"), | 1829 | xs_html_attr("type", "hidden"), |
| 1830 | xs_html_attr("name", "to"), | 1830 | xs_html_attr("name", "to"), |
| 1831 | xs_html_attr("value", actor_id)), | 1831 | xs_html_attr("value", actor_id)), |
| 1832 | xs_html_sctag("p", NULL), | 1832 | xs_html_tag("p", NULL), |
| 1833 | xs_html_tag("details", | 1833 | xs_html_tag("details", |
| 1834 | xs_html_tag("summary", | 1834 | xs_html_tag("summary", |
| 1835 | xs_html_text(L("Attachment..."))), | 1835 | xs_html_text(L("Attachment..."))), |
| 1836 | xs_html_sctag("p", NULL), | 1836 | xs_html_tag("p", NULL), |
| 1837 | xs_html_sctag("input", | 1837 | xs_html_sctag("input", |
| 1838 | xs_html_attr("type", "file"), | 1838 | xs_html_attr("type", "file"), |
| 1839 | xs_html_attr("name", "attach")), | 1839 | xs_html_attr("name", "attach")), |
| @@ -1841,20 +1841,20 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head | |||
| 1841 | xs_html_attr("type", "text"), | 1841 | xs_html_attr("type", "text"), |
| 1842 | xs_html_attr("name", "alt_text"), | 1842 | xs_html_attr("name", "alt_text"), |
| 1843 | xs_html_attr("placeholder", L("Attachment description")))), | 1843 | xs_html_attr("placeholder", L("Attachment description")))), |
| 1844 | xs_html_sctag("p", NULL), | 1844 | xs_html_tag("p", NULL), |
| 1845 | xs_html_sctag("input", | 1845 | xs_html_sctag("input", |
| 1846 | xs_html_attr("type", "submit"), | 1846 | xs_html_attr("type", "submit"), |
| 1847 | xs_html_attr("class", "button"), | 1847 | xs_html_attr("class", "button"), |
| 1848 | xs_html_attr("value", L("Post")))), | 1848 | xs_html_attr("value", L("Post")))), |
| 1849 | xs_html_sctag("p", NULL))), | 1849 | xs_html_tag("p", NULL))), |
| 1850 | xs_html_sctag("p", NULL)); | 1850 | xs_html_tag("p", NULL)); |
| 1851 | 1851 | ||
| 1852 | xs_html_add(snac_controls, dm_textarea); | 1852 | xs_html_add(snac_controls, dm_textarea); |
| 1853 | 1853 | ||
| 1854 | xs_html_add(snac_post, snac_controls); | 1854 | xs_html_add(snac_post, snac_controls); |
| 1855 | 1855 | ||
| 1856 | { | 1856 | { |
| 1857 | xs *s1 = xs_html_render(snac_post); | 1857 | xs *s1 = xs_html_render_s(snac_post, xs_dup("\n")); |
| 1858 | s = xs_str_cat(s, s1); | 1858 | s = xs_str_cat(s, s1); |
| 1859 | } | 1859 | } |
| 1860 | } | 1860 | } |