Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00
forgejo/routers/web/org
yp05327 5a0bc35799
Fix sort order for organization home and user profile page (#31921)
Fix #31916

In #30876, `sortOrder` has been changed into a map, but it is only
implemented in explore.
~~But it seems that size sort order has no effect from long long ago,~~
not directly caused by the PR above.

I think it is still caused by #29231.
In #29231, it merged the sort orders from
`templates/explore/repo_search.tmpl` and
`templates/admin/repo/search.tmpl`.
In `templates/admin/repo/search.tmpl`, it contains size sort orders, but
not in `templates/explore/repo_search.tmpl`, which is used in non-admin
pages.
So `order by size` is added from #29231, but the handler was not added.

---------

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 661a1e10f7abd3527d2abc027dec936022db9379)
2024-09-09 20:54:39 +02:00
..
setting Show repo count in blocked users tab (#3601) 2024-05-02 15:51:27 +00:00
home.go Fix sort order for organization home and user profile page (#31921) 2024-09-09 20:54:39 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
members.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
org.go feat(i18n): allow different translations of creation links and titles (#4829) 2024-08-07 16:54:05 +00:00
org_labels.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
projects.go Add missed return after ctx.ServerError (#31130) 2024-06-02 16:26:54 +02:00
projects_test.go Rename project board -> column to make the UI less confusing (#30170) 2024-06-02 09:42:39 +02:00
setting.go [REFACTOR] use Icon from interface in webhook list 2024-03-30 16:00:06 +01:00
setting_oauth2.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
setting_packages.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
teams.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00