add: ability to enable pages instead of infinite scrolling
This commit is contained in:
parent
fa72d6a59d
commit
ffdf320c14
15 changed files with 47 additions and 15 deletions
|
@ -576,6 +576,8 @@ pub struct TimelineQuery {
|
|||
pub user_id: usize,
|
||||
#[serde(default)]
|
||||
pub tag: String,
|
||||
#[serde(default)]
|
||||
pub paginated: bool,
|
||||
}
|
||||
|
||||
/// `/_swiss_army_timeline`
|
||||
|
@ -697,6 +699,7 @@ pub async fn swiss_army_timeline_request(
|
|||
|
||||
context.insert("list", &list);
|
||||
context.insert("page", &req.page);
|
||||
context.insert("paginated", &req.paginated);
|
||||
Ok(Html(
|
||||
data.1
|
||||
.render("timelines/swiss_army.html", &context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue