diff options
| author | 2024-09-06 09:33:59 +0200 | |
|---|---|---|
| committer | 2024-09-06 09:33:59 +0200 | |
| commit | 97c4af001b800c6195076ad50eb969e20f484262 (patch) | |
| tree | 334cf98f74720e5378aa653bd1888a5bb1b81f56 | |
| parent | Version 2.58 RELEASED. (diff) | |
| download | snac2-97c4af001b800c6195076ad50eb969e20f484262.tar.gz snac2-97c4af001b800c6195076ad50eb969e20f484262.tar.xz snac2-97c4af001b800c6195076ad50eb969e20f484262.zip | |
New checkbox in html_note() for marking a post as a draft.
| -rw-r--r-- | html.c | 8 | ||||
| -rw-r--r-- | snac.h | 2 |
2 files changed, 9 insertions, 1 deletions
| @@ -357,6 +357,14 @@ xs_html *html_note(snac *user, const char *summary, | |||
| 357 | xs_html_attr("name", "in_reply_to"), | 357 | xs_html_attr("name", "in_reply_to"), |
| 358 | xs_html_attr("placeholder", "Optional URL to reply to"))); | 358 | xs_html_attr("placeholder", "Optional URL to reply to"))); |
| 359 | 359 | ||
| 360 | xs_html_add(form, | ||
| 361 | xs_html_tag("p", NULL), | ||
| 362 | xs_html_attr("title", L("Don't send, but store as a draft")), | ||
| 363 | xs_html_text(L("Draft:")), | ||
| 364 | xs_html_sctag("input", | ||
| 365 | xs_html_attr("type", "checkbox"), | ||
| 366 | xs_html_attr("name", "is_draft"))); | ||
| 367 | |||
| 360 | if (edit_id) | 368 | if (edit_id) |
| 361 | xs_html_add(form, | 369 | xs_html_add(form, |
| 362 | xs_html_sctag("input", | 370 | xs_html_sctag("input", |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2024 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2024 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define VERSION "2.58" | 4 | #define VERSION "2.59-dev" |
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||