summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-05-30 09:09:04 +0200
committerGravatar default2023-05-30 09:09:04 +0200
commitb98a284f6f243c18f73935526cc7f99ca8a4fac3 (patch)
treea9cf9b0896a3c33b3418169417d3c6646b34a54c /html.c
parentReplaced "Image" with "File". (diff)
downloadsnac2-b98a284f6f243c18f73935526cc7f99ca8a4fac3.tar.gz
snac2-b98a284f6f243c18f73935526cc7f99ca8a4fac3.tar.xz
snac2-b98a284f6f243c18f73935526cc7f99ca8a4fac3.zip
Wrap attachments in notes behind a "details".
Diffstat (limited to 'html.c')
-rw-r--r--html.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/html.c b/html.c
index d3a6e58..82700f6 100644
--- a/html.c
+++ b/html.c
@@ -348,8 +348,12 @@ d_char *html_top_controls(snac *snac, d_char *s)
348 "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n" 348 "<input type=\"hidden\" name=\"in_reply_to\" value=\"\">\n"
349 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n" 349 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
350 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n" 350 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
351
352 "<details><summary>%s</summary>\n"
351 "<p>%s: <input type=\"file\" name=\"attach\">\n" 353 "<p>%s: <input type=\"file\" name=\"attach\">\n"
352 "<p>%s: <input type=\"text\" name=\"alt_text\">\n" 354 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
355 "</details>\n"
356
353 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" 357 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
354 "</form><p>\n" 358 "</form><p>\n"
355 "</div>\n" 359 "</div>\n"
@@ -446,6 +450,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
446 snac->actor, 450 snac->actor,
447 L("Sensitive content"), 451 L("Sensitive content"),
448 L("Only for mentioned people"), 452 L("Only for mentioned people"),
453 L("Attach..."),
449 L("File"), 454 L("File"),
450 L("File description"), 455 L("File description"),
451 L("Post"), 456 L("Post"),
@@ -617,8 +622,11 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
617 622
618 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n" 623 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
619 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n" 624 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
625
626 "<details><summary>%s</summary>\n"
620 "<p>%s: <input type=\"file\" name=\"attach\">\n" 627 "<p>%s: <input type=\"file\" name=\"attach\">\n"
621 "<p>%s: <input type=\"text\" name=\"alt_text\">\n" 628 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
629 "</details>\n"
622 630
623 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n" 631 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
624 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" 632 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
@@ -633,6 +641,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
633 id, 641 id,
634 L("Sensitive content"), 642 L("Sensitive content"),
635 L("Only for mentioned people"), 643 L("Only for mentioned people"),
644 L("Attach..."),
636 L("File"), 645 L("File"),
637 L("File description"), 646 L("File description"),
638 md5, 647 md5,
@@ -657,8 +666,11 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
657 666
658 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n" 667 "<p>%s: <input type=\"checkbox\" name=\"sensitive\">\n"
659 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n" 668 "<p>%s: <input type=\"checkbox\" name=\"mentioned_only\">\n"
669
670 "<details><summary>%s</summary>\n"
660 "<p>%s: <input type=\"file\" name=\"attach\">\n" 671 "<p>%s: <input type=\"file\" name=\"attach\">\n"
661 "<p>%s: <input type=\"text\" name=\"alt_text\">\n" 672 "<p>%s: <input type=\"text\" name=\"alt_text\">\n"
673 "</details>\n"
662 674
663 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n" 675 "<input type=\"hidden\" name=\"redir\" value=\"%s_entry\">\n"
664 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" 676 "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
@@ -673,6 +685,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
673 id, 685 id,
674 L("Sensitive content"), 686 L("Sensitive content"),
675 L("Only for mentioned people"), 687 L("Only for mentioned people"),
688 L("Attach..."),
676 L("File"), 689 L("File"),
677 L("File description"), 690 L("File description"),
678 md5, 691 md5,