diff options
author | default <nobody@localhost> | 2024-05-24 19:06:39 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-24 19:06:39 +0200 |
commit | f631fc5ed22cb49d9d9f6a481f4a5d227c180246 (patch) | |
tree | f25d7bf5b470cb9bdbb16493a22125d2cca5eeec /html.c | |
parent | a727bb29f6a4b1e66a4ad0664e4557f69d1e2ac4 (diff) |
Added a 'title' to each list timeline.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2072,14 +2072,17 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, xs_html_add(body, lol); while (xs_list_next(lists, &v, &ct)) { + const char *lname = xs_list_get(v, 1); xs *url = xs_fmt("%s/list/%s", user->actor, xs_list_get(v, 0)); + xs *ttl = xs_fmt(L("Timeline for list '%s'"), lname); xs_html_add(lol, xs_html_tag("li", xs_html_tag("a", xs_html_attr("href", url), xs_html_attr("class", "snac-list-link"), - xs_html_text(xs_list_get(v, 1))))); + xs_html_attr("title", ttl), + xs_html_text(lname)))); } } } |