commit 2ee74c9
default
·
2023-07-24 18:51:24 +0000 UTC
parent 4af9557
Added a 'Back to top' link at the end of the page.
1 files changed,
+5,
-1
M
html.c
M
html.c
+5,
-1
1@@ -1425,8 +1425,12 @@ xs_str *html_timeline(snac *snac, const xs_list *list, int local, int skip, int
2 if (show_more) {
3 xs *s1 = xs_fmt(
4 "<p>"
5+ "<a href=\"%s%s\" name=\"snac-more\">%s</a> - "
6 "<a href=\"%s%s?skip=%d&show=%d\" name=\"snac-more\">%s</a>"
7- "</p>\n", snac->actor, local ? "" : "/admin", skip + show, show, L("Load more..."));
8+ "</p>\n",
9+ snac->actor, local ? "" : "/admin", L("Back to top"),
10+ snac->actor, local ? "" : "/admin", skip + show, show, L("Older entries...")
11+ );
12
13 s = xs_str_cat(s, s1);
14 }