mirror of https://github.com/go-gitea/gitea.git
Backport #31921
This commit is contained in:
parent
b5500cded1
commit
cc1520221a
|
@ -70,6 +70,10 @@ func Home(ctx *context.Context) {
|
|||
orderBy = db.SearchOrderByForksReverse
|
||||
case "fewestforks":
|
||||
orderBy = db.SearchOrderByForks
|
||||
case "size":
|
||||
orderBy = db.SearchOrderByGitSize
|
||||
case "reversesize":
|
||||
orderBy = db.SearchOrderByGitSizeReverse
|
||||
default:
|
||||
ctx.Data["SortType"] = "recentupdate"
|
||||
orderBy = db.SearchOrderByRecentUpdated
|
||||
|
|
|
@ -132,6 +132,10 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
|
|||
orderBy = db.SearchOrderByForksReverse
|
||||
case "fewestforks":
|
||||
orderBy = db.SearchOrderByForks
|
||||
case "size":
|
||||
orderBy = db.SearchOrderByGitSize
|
||||
case "reversesize":
|
||||
orderBy = db.SearchOrderByGitSizeReverse
|
||||
default:
|
||||
ctx.Data["SortType"] = "recentupdate"
|
||||
orderBy = db.SearchOrderByRecentUpdated
|
||||
|
|
Loading…
Reference in New Issue