commit d3cf86c

default  ·  2023-01-28 17:00:26 +0000 UTC
parent 876bebd
New post field 'alt_text'.
1 files changed,  +13, -3
M html.c
M html.c
+13, -3
 1@@ -267,8 +267,9 @@ d_char *html_top_controls(snac *snac, d_char *s)
 2         "<textarea class=\"snac-textarea\" name=\"content\" "
 3         "rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n"
 4         "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
 5-        "<p><input type=\"checkbox\" name=\"sensitive\"> %s\n"
 6+        "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
 7         "<p><input type=\"file\" name=\"attach\">\n"
 8+        "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
 9         "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
10         "</form><p>\n"
11         "</div>\n"
12@@ -331,6 +332,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
13     xs *s1 = xs_fmt(_tmpl,
14         snac->actor,
15         L("Sensitive content"),
16+        L("Image description"),
17         L("Post"),
18 
19         L("More options..."),
20@@ -491,8 +493,11 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
21             "<textarea class=\"snac-textarea\" name=\"content\" "
22             "rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
23             "<input type=\"hidden\" name=\"edit_id\" value=\"%s\">\n"
24-            "<p><input type=\"checkbox\" name=\"sensitive\"> %s\n"
25+
26+            "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
27             "<p><input type=\"file\" name=\"attach\">\n"
28+            "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
29+
30             "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
31             "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
32             "</form><p></div>\n"
33@@ -505,6 +510,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
34             prev_src,
35             id,
36             L("Sensitive content"),
37+            L("Image description"),
38             md5,
39             L("Post")
40         );
41@@ -524,8 +530,11 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
42             "<textarea class=\"snac-textarea\" name=\"content\" "
43             "rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
44             "<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n"
45-            "<p><input type=\"checkbox\" name=\"sensitive\"> %s\n"
46+
47+            "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
48             "<p><input type=\"file\" name=\"attach\">\n"
49+            "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
50+
51             "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
52             "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
53             "</form><p></div>\n"
54@@ -538,6 +547,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, const char *md5)
55             ct,
56             id,
57             L("Sensitive content"),
58+            L("Image description"),
59             md5,
60             L("Post")
61         );