diff options
| -rw-r--r-- | html.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -2034,6 +2034,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 2034 | xs_html_add(body, | 2034 | xs_html_add(body, |
| 2035 | html_top_controls(user)); | 2035 | html_top_controls(user)); |
| 2036 | 2036 | ||
| 2037 | if (user && title) { | ||
| 2038 | xs_html_add(body, | ||
| 2039 | xs_html_tag("h2", | ||
| 2040 | xs_html_attr("class", "snac-header"), | ||
| 2041 | xs_html_text(title))); | ||
| 2042 | } | ||
| 2043 | |||
| 2037 | xs_html_add(body, | 2044 | xs_html_add(body, |
| 2038 | xs_html_tag("a", | 2045 | xs_html_tag("a", |
| 2039 | xs_html_attr("name", "snac-posts"))); | 2046 | xs_html_attr("name", "snac-posts"))); |
| @@ -2666,9 +2673,11 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 2666 | 2673 | ||
| 2667 | if (list != NULL) { | 2674 | if (list != NULL) { |
| 2668 | xs *base = xs_fmt("/list/%s", lid); | 2675 | xs *base = xs_fmt("/list/%s", lid); |
| 2676 | xs *name = list_maint(&snac, lid, 3); | ||
| 2677 | xs *title = xs_fmt(L("Showing timeline for list %s"), name); | ||
| 2669 | 2678 | ||
| 2670 | *body = html_timeline(&snac, list, 0, skip, show, | 2679 | *body = html_timeline(&snac, list, 0, skip, show, |
| 2671 | xs_list_len(next), NULL, base, 1); | 2680 | xs_list_len(next), title, base, 1); |
| 2672 | *b_size = strlen(*body); | 2681 | *b_size = strlen(*body); |
| 2673 | status = 200; | 2682 | status = 200; |
| 2674 | } | 2683 | } |