]> source.dussan.org Git - gitea.git/commit
Make branches list page operations remember current page (#23420)
authorwxiaoguang <wxiaoguang@gmail.com>
Tue, 14 Mar 2023 05:11:38 +0000 (13:11 +0800)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 05:11:38 +0000 (13:11 +0800)
commit6ff5400af91aefb02cbc7dd59f6be23cc2bf7865
treef16e7e5223ac37bc795a96679309eecc8ce67a12
parent0efa9d564941e6539df98ed4ddd906a05c1fa7e7
Make branches list page operations remember current page (#23420)

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: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/context/pagination.go
routers/web/repo/branch.go
templates/repo/branch/list.tmpl