From 26446c816090bf1bc8de008b0d1d16b4664d7abf Mon Sep 17 00:00:00 2001 From: default Date: Wed, 28 Sep 2022 10:21:57 +0200 Subject: New function html_top_controls(). --- html.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 103 insertions(+), 12 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 5530c34..21ee151 100644 --- a/html.c +++ b/html.c @@ -259,23 +259,111 @@ d_char *html_user_header(snac *snac, d_char *s, int local) /* user info */ { - s = xs_str_cat(s, "
%s
\n" + "@%s@%s
\n" + "%s
\n", - xs_dict_get(snac->config, "name")); s = xs_str_cat(s, s1); + } - xs *s2 = xs_fmt("@%s@%s
\n", - xs_dict_get(snac->config, "uid"), xs_dict_get(srv_config, "host")); - s = xs_str_cat(s, s2); + return s; +} - xs *bio = NULL; - not_really_markdown(xs_dict_get(snac->config, "bio"), &bio); - xs *s3 = xs_fmt("\n" + "