fix 'page 1 of 0' on empty log lists
This commit is contained in:
@@ -102,7 +102,7 @@ pub async fn page(
|
|||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
"Page " (page) " of " (total_pages)
|
"Page " (page) " of " (total_pages.max(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
@if page < total_pages {
|
@if page < total_pages {
|
||||||
|
|||||||
Reference in New Issue
Block a user