diff --git a/html.c b/html.c index 8d95738..fe0ef9f 100644 --- a/html.c +++ b/html.c @@ -750,8 +750,9 @@ xs_str *html_top_controls(snac *snac, xs_str *s) "

\n" "

\n" "\n" - "\n" + "\n"; + char *_tmpl2 = "

\n" "
%s\n" @@ -764,8 +765,9 @@ xs_str *html_top_controls(snac *snac, xs_str *s) "\n" " %s\n" "

\n" - "

\n" + "\n"; + char *_tmpl3 = "
%s\n" "
\n" /** user setup **/ @@ -896,16 +898,18 @@ xs_str *html_top_controls(snac *snac, xs_str *s) L("End in 1 hour"), L("End in 1 day"), - L("Post"), + L("Post")); + xs *s2 = xs_fmt(_tmpl2, L("Operations..."), snac->actor, L("Follow"), L("(by URL or user@host)"), snac->actor, - L("Boost"), L("(by URL)"), + L("Boost"), L("(by URL)")); + xs *s3 = xs_fmt(_tmpl3, L("User Settings..."), snac->actor, L("Display name"), @@ -938,7 +942,7 @@ xs_str *html_top_controls(snac *snac, xs_str *s) L("Update user info") ); - s = xs_str_cat(s, s1); + s = xs_str_cat(s, s1, s2, s3); return s; }