diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 19 |
1 files changed, 11 insertions, 8 deletions
| @@ -2172,15 +2172,18 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, | |||
| 2172 | m = xs_fmt("%s?%s", t, ss); | 2172 | m = xs_fmt("%s?%s", t, ss); |
| 2173 | } | 2173 | } |
| 2174 | 2174 | ||
| 2175 | xs *s1 = xs_fmt( | 2175 | xs_html *more_links = xs_html_tag("p", |
| 2176 | "<p>" | 2176 | xs_html_tag("a", |
| 2177 | "<a href=\"%s\" name=\"snac-more\">%s</a> - " | 2177 | xs_html_attr("href", t), |
| 2178 | "<a href=\"%s\" name=\"snac-more\">%s</a>" | 2178 | xs_html_attr("name", "snac-more"), |
| 2179 | "</p>\n", | 2179 | xs_html_text(L("Back to top"))), |
| 2180 | t, L("Back to top"), | 2180 | xs_html_text(" - "), |
| 2181 | m, L("More...") | 2181 | xs_html_tag("a", |
| 2182 | ); | 2182 | xs_html_attr("href", m), |
| 2183 | xs_html_attr("name", "snac-more"), | ||
| 2184 | xs_html_text(L("More...")))); | ||
| 2183 | 2185 | ||
| 2186 | xs *s1 = xs_html_render(more_links); | ||
| 2184 | s = xs_str_cat(s, s1); | 2187 | s = xs_str_cat(s, s1); |
| 2185 | } | 2188 | } |
| 2186 | 2189 | ||