Use the total issue count for UI (#20785)
Use the total issue count for UI (#20785)

* Use the total issue count for UI

This fixes a problem where the "All" line item on the Issues or Pull Requests page was only showing the count of the selected repos instead of the total of all issues/prs in all repos.

The "total number of shown issues" number is now stashed in a different context variable in case it wants to be used by the frontend later. It's currently not being used.

Fixes #20574

* Remove unused context variable

Co-authored-by: zeripath <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
Co-authored-by: Lunny Xiao <0b0704cdf8f0790c6f1df1f74c38be95a8917ed2@gmail.com>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea