mirror of
https://github.com/YGGverse/btracker-gemini.git
synced 2026-03-31 17:15:30 +00:00
reorder next/back buttons
This commit is contained in:
parent
4dd4ef6f55
commit
a05524e8db
1 changed files with 8 additions and 8 deletions
16
src/main.rs
16
src/main.rs
|
|
@ -338,6 +338,14 @@ fn list(
|
|||
total.plurify(&["torrent", "torrents", "torrents"])
|
||||
));
|
||||
|
||||
if page.unwrap_or(1) * public.default_limit < total {
|
||||
b.push(format!(
|
||||
"=> /{}{} Next",
|
||||
page.map_or(2, |p| p + 1),
|
||||
query(keyword)
|
||||
))
|
||||
}
|
||||
|
||||
if let Some(p) = page {
|
||||
b.push(format!(
|
||||
"=> {}{} Back",
|
||||
|
|
@ -350,14 +358,6 @@ fn list(
|
|||
))
|
||||
}
|
||||
|
||||
if page.unwrap_or(1) * public.default_limit < total {
|
||||
b.push(format!(
|
||||
"=> /{}{} Next",
|
||||
page.map_or(2, |p| p + 1),
|
||||
query(keyword)
|
||||
))
|
||||
}
|
||||
|
||||
b.push("\n=> /search Search".into());
|
||||
|
||||
Ok(b.join("\n"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue