diff options
| author | 2024-05-24 12:24:23 +0200 | |
|---|---|---|
| committer | 2024-05-24 12:24:23 +0200 | |
| commit | 8ebad8d536dfdcec568e3a926e3c8796a0305ab5 (patch) | |
| tree | 611012a72e8ac51184d91b6ffa8089d21ecf2dab /html.c | |
| parent | Added links to the lists in html_timeline(). (diff) | |
| download | penes-snac2-8ebad8d536dfdcec568e3a926e3c8796a0305ab5.tar.gz penes-snac2-8ebad8d536dfdcec568e3a926e3c8796a0305ab5.tar.xz penes-snac2-8ebad8d536dfdcec568e3a926e3c8796a0305ab5.zip | |
Minor list show tweaks.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -2059,13 +2059,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 2059 | xs_html_add(body, | 2059 | xs_html_add(body, |
| 2060 | html_top_controls(user)); | 2060 | html_top_controls(user)); |
| 2061 | 2061 | ||
| 2062 | if (title) { | ||
| 2063 | xs_html_add(body, | ||
| 2064 | xs_html_tag("h2", | ||
| 2065 | xs_html_attr("class", "snac-header"), | ||
| 2066 | xs_html_text(title))); | ||
| 2067 | } | ||
| 2068 | |||
| 2069 | /* show links to the available lists */ | 2062 | /* show links to the available lists */ |
| 2070 | { | 2063 | { |
| 2071 | xs *lists = list_maint(user, NULL, 0); /* get list of lists */ | 2064 | xs *lists = list_maint(user, NULL, 0); /* get list of lists */ |
| @@ -2091,6 +2084,13 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 2091 | } | 2084 | } |
| 2092 | } | 2085 | } |
| 2093 | 2086 | ||
| 2087 | if (title) { | ||
| 2088 | xs_html_add(body, | ||
| 2089 | xs_html_tag("h2", | ||
| 2090 | xs_html_attr("class", "snac-header"), | ||
| 2091 | xs_html_text(title))); | ||
| 2092 | } | ||
| 2093 | |||
| 2094 | xs_html_add(body, | 2094 | xs_html_add(body, |
| 2095 | xs_html_tag("a", | 2095 | xs_html_tag("a", |
| 2096 | xs_html_attr("name", "snac-posts"))); | 2096 | xs_html_attr("name", "snac-posts"))); |
| @@ -2768,7 +2768,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 2768 | if (list != NULL) { | 2768 | if (list != NULL) { |
| 2769 | xs *base = xs_fmt("/list/%s", lid); | 2769 | xs *base = xs_fmt("/list/%s", lid); |
| 2770 | xs *name = list_maint(&snac, lid, 3); | 2770 | xs *name = list_maint(&snac, lid, 3); |
| 2771 | xs *title = xs_fmt(L("Showing timeline for list %s"), name); | 2771 | xs *title = xs_fmt(L("Showing timeline for list '%s'"), name); |
| 2772 | 2772 | ||
| 2773 | *body = html_timeline(&snac, list, 0, skip, show, | 2773 | *body = html_timeline(&snac, list, 0, skip, show, |
| 2774 | xs_list_len(next), title, base, 1); | 2774 | xs_list_len(next), title, base, 1); |