mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Added a 'Back to top' link at the end of the page.
This commit is contained in:
parent
4af95579dc
commit
2ee74c9a6a
1 changed files with 5 additions and 1 deletions
6
html.c
6
html.c
|
@ -1425,8 +1425,12 @@ xs_str *html_timeline(snac *snac, const xs_list *list, int local, int skip, int
|
|||
if (show_more) {
|
||||
xs *s1 = xs_fmt(
|
||||
"<p>"
|
||||
"<a href=\"%s%s\" name=\"snac-more\">%s</a> - "
|
||||
"<a href=\"%s%s?skip=%d&show=%d\" name=\"snac-more\">%s</a>"
|
||||
"</p>\n", snac->actor, local ? "" : "/admin", skip + show, show, L("Load more..."));
|
||||
"</p>\n",
|
||||
snac->actor, local ? "" : "/admin", L("Back to top"),
|
||||
snac->actor, local ? "" : "/admin", skip + show, show, L("Older entries...")
|
||||
);
|
||||
|
||||
s = xs_str_cat(s, s1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue