From b9a09a25119e3307c3ab17bc05056fbfda2b971b Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 21 Mar 2023 19:15:20 +0900 Subject: [PATCH] Follow pagination user list page change --- templates/instance/users.rs.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/instance/users.rs.html b/templates/instance/users.rs.html index d55ce5fd..1499fb52 100644 --- a/templates/instance/users.rs.html +++ b/templates/instance/users.rs.html @@ -53,5 +53,9 @@ } - @paginate(ctx.1, page, n_pages) + @if user.is_some() { + @paginate_param(ctx.1, page, n_pages, Some(format!("user={}", encode_query_param(user.unwrap_or_default())))) + } else { + @paginate(ctx.1, page, n_pages) + } })