mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-29 16:03:37 +00:00
Also add the 'Image to attach' field to reply textareas.
This commit is contained in:
parent
e1893f1767
commit
39a55f22a3
1 changed files with 5 additions and 2 deletions
7
html.c
7
html.c
|
@ -196,7 +196,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
"rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n"
|
"rows=\"8\" wrap=\"virtual\" required=\"required\"></textarea>\n"
|
||||||
"<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
|
"<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
|
||||||
"<input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
"<input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
||||||
"<input type=\"text\" name=\"attach_url\"> Image URL<p>"
|
"<input type=\"text\" name=\"attach_url\"> %s<p>"
|
||||||
"</form><p>\n"
|
"</form><p>\n"
|
||||||
"</div>\n"
|
"</div>\n"
|
||||||
|
|
||||||
|
@ -244,6 +244,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
xs *s1 = xs_fmt(_tmpl,
|
xs *s1 = xs_fmt(_tmpl,
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Post"),
|
L("Post"),
|
||||||
|
L("Image to attach (URL)"),
|
||||||
|
|
||||||
L("More options..."),
|
L("More options..."),
|
||||||
|
|
||||||
|
@ -393,13 +394,15 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg)
|
||||||
"rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
|
"rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
|
||||||
"<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n"
|
"<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n"
|
||||||
"<input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
"<input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
||||||
|
"<input type=\"text\" name=\"attach_url\"> %s<p>"
|
||||||
"</form><p></div>\n",
|
"</form><p></div>\n",
|
||||||
|
|
||||||
md5,
|
md5,
|
||||||
snac->actor, md5,
|
snac->actor, md5,
|
||||||
ct,
|
ct,
|
||||||
id,
|
id,
|
||||||
L("Post")
|
L("Post"),
|
||||||
|
L("Image to attach (URL)")
|
||||||
);
|
);
|
||||||
|
|
||||||
s = xs_str_cat(s, s1);
|
s = xs_str_cat(s, s1);
|
||||||
|
|
Loading…
Reference in a new issue