mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-29 07:53:37 +00:00
html.c / UX: Give admin page more space
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
e6d5ce2654
commit
fe0d820795
1 changed files with 5 additions and 2 deletions
7
html.c
7
html.c
|
@ -392,6 +392,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
"<div class=\"snac-top-controls\">\n"
|
"<div class=\"snac-top-controls\">\n"
|
||||||
|
|
||||||
"<div class=\"snac-note\">\n"
|
"<div class=\"snac-note\">\n"
|
||||||
|
"<details><summary>%s</summary>\n"
|
||||||
"<form autocomplete=\"off\" method=\"post\" "
|
"<form autocomplete=\"off\" method=\"post\" "
|
||||||
"action=\"%s/admin/note\" enctype=\"multipart/form-data\">\n"
|
"action=\"%s/admin/note\" enctype=\"multipart/form-data\">\n"
|
||||||
"<textarea class=\"snac-textarea\" name=\"content\" "
|
"<textarea class=\"snac-textarea\" name=\"content\" "
|
||||||
|
@ -425,6 +426,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
"<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
"<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
||||||
"</form><p>\n"
|
"</form><p>\n"
|
||||||
"</div>\n"
|
"</div>\n"
|
||||||
|
"</details>\n"
|
||||||
|
|
||||||
"<div class=\"snac-top-controls-more\">\n"
|
"<div class=\"snac-top-controls-more\">\n"
|
||||||
"<details><summary>%s</summary>\n"
|
"<details><summary>%s</summary>\n"
|
||||||
|
@ -528,6 +530,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
xs *es6 = encode_html(purge_days);
|
xs *es6 = encode_html(purge_days);
|
||||||
|
|
||||||
xs *s1 = xs_fmt(_tmpl,
|
xs *s1 = xs_fmt(_tmpl,
|
||||||
|
L("New Post..."),
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Sensitive content"),
|
L("Sensitive content"),
|
||||||
L("Sensitive content description"),
|
L("Sensitive content description"),
|
||||||
|
@ -547,7 +550,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
|
|
||||||
L("Post"),
|
L("Post"),
|
||||||
|
|
||||||
L("More options..."),
|
L("Preferences..."),
|
||||||
|
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Follow"), L("(by URL or user@host)"),
|
L("Follow"), L("(by URL or user@host)"),
|
||||||
|
@ -555,7 +558,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Boost"), L("(by URL)"),
|
L("Boost"), L("(by URL)"),
|
||||||
|
|
||||||
L("User settings...."),
|
L("User Settings"),
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Display name"),
|
L("Display name"),
|
||||||
es1,
|
es1,
|
||||||
|
|
Loading…
Reference in a new issue