commit b98a284
default
·
2023-05-30 07:09:04 +0000 UTC
parent e02beac
Wrap attachments in notes behind a "details".
1 files changed,
+13,
-0
M
html.c
M
html.c
+13,
-0
1@@ -348,8 +348,12 @@ d_char *html_top_controls(snac *snac, d_char *s)
2 "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
3 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
4 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
5+
6+ "<details><summary>%s</summary>\n"
7 "<p>%s: <input type=\"file\" name=\"attach\">\n"
8 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
9+ "</details>\n"
10+
11 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
12 "</form><p>\n"
13 "</div>\n"
14@@ -446,6 +450,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
15 snac->actor,
16 L("Sensitive content"),
17 L("Only for mentioned people"),
18+ L("Attach..."),
19 L("File"),
20 L("File description"),
21 L("Post"),
22@@ -617,8 +622,11 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
23
24 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
25 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
26+
27+ "<details><summary>%s</summary>\n"
28 "<p>%s: <input type=\"file\" name=\"attach\">\n"
29 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
30+ "</details>\n"
31
32 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
33 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
34@@ -633,6 +641,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
35 id,
36 L("Sensitive content"),
37 L("Only for mentioned people"),
38+ L("Attach..."),
39 L("File"),
40 L("File description"),
41 md5,
42@@ -657,8 +666,11 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
43
44 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
45 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
46+
47+ "<details><summary>%s</summary>\n"
48 "<p>%s: <input type=\"file\" name=\"attach\">\n"
49 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
50+ "</details>\n"
51
52 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
53 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
54@@ -673,6 +685,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
55 id,
56 L("Sensitive content"),
57 L("Only for mentioned people"),
58+ L("Attach..."),
59 L("File"),
60 L("File description"),
61 md5,