snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit cb3bb90dfcdb8af5edbb1648e8506346588d6ec6
parent e1df0d0d57c61df222a3d8d2eb02e82578b6fb3f
Author: default <nobody@localhost>
Date:   Sat, 19 Oct 2024 17:56:17 +0200

Tweaked HTML for the timeline pages.

Diffstat:
Mhtml.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/html.c b/html.c @@ -2259,13 +2259,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, } } - if (title) { - xs_html_add(body, - xs_html_tag("h2", - xs_html_attr("class", "snac-header"), - xs_html_text(title))); - } - xs_html_add(body, xs_html_tag("a", xs_html_attr("name", "snac-posts"))); @@ -2273,6 +2266,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, xs_html *posts = xs_html_tag("div", xs_html_attr("class", "snac-posts")); + if (title) { + xs_html_add(posts, + xs_html_tag("h2", + xs_html_attr("class", "snac-header"), + xs_html_text(title))); + } + xs_html_add(body, posts);