From e31734c06a6aa2558b552395811b59d7ebf1e94b Mon Sep 17 00:00:00 2001 From: default Date: Sun, 18 Dec 2022 06:10:50 +0100 Subject: [PATCH] Conversations can be collapsed. --- html.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index ab1561b..28cbfe3 100644 --- a/html.c +++ b/html.c @@ -758,13 +758,17 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons if (left) { char *p, *cmd5; + s = xs_str_cat(s, "
...

\n"); + if (level < 4) s = xs_str_cat(s, "

\n"); else s = xs_str_cat(s, "
\n"); - if (left > 3) - s = xs_str_cat(s, "
...\n"); + if (left > 3) { + xs *s1 = xs_fmt("
%s\n", L("Older...")); + s = xs_str_cat(s, s1); + } p = children; while (xs_list_iter(&p, &cmd5)) { @@ -783,6 +787,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons } s = xs_str_cat(s, "
\n"); + s = xs_str_cat(s, "
\n"); } s = xs_str_cat(s, "\n\n");