]> source.dussan.org Git - gitea.git/commit
Make branches list page operations remember current page (#23420) (#23459)
authorGiteabot <teabot@gitea.io>
Wed, 15 Mar 2023 12:13:27 +0000 (08:13 -0400)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 12:13:27 +0000 (13:13 +0100)
commit04d489dbdd9906c51bf836203eb5d1af061902e1
tree90dfc3313b1942d428bc3ec38a59627824479860
parent491ee4308252da3316f51765a8e5a62dea51d8b4
Make branches list page operations remember current page (#23420) (#23459)

Backport #23420 by @wxiaoguang

Close #23411

Always pass "page" query parameter to backend, and make backend respect
it.

The `ctx.FormInt("limit")` is never used, so removed.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
modules/context/pagination.go
routers/web/repo/branch.go
templates/repo/branch/list.tmpl