mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Added a navigation footer (i.e., an optional "More..." link) to the notification page.
This commit is contained in:
parent
4e35b4b865
commit
7efa3ce519
1 changed files with 13 additions and 0 deletions
13
html.c
13
html.c
|
@ -2272,6 +2272,19 @@ xs_str *html_notifications(snac *user, int skip, int show)
|
|||
xs_html_attr("class", "snac-header"),
|
||||
xs_html_text(L("None"))));
|
||||
|
||||
/* add the navigation footer */
|
||||
xs *next_p = notify_list(user, skip + show, 1);
|
||||
if (xs_list_len(next_p)) {
|
||||
xs *url = xs_fmt("%s/notifications?skip=%d&show=%d",
|
||||
user->actor, skip + show, show);
|
||||
|
||||
xs_html_add(body,
|
||||
xs_html_tag("p",
|
||||
xs_html_tag("a",
|
||||
xs_html_attr("href", url),
|
||||
xs_html_text(L("More...")))));
|
||||
}
|
||||
|
||||
xs_html_add(body,
|
||||
html_footer());
|
||||
|
||||
|
|
Loading…
Reference in a new issue