mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
fix
This commit is contained in:
parent
b140f647fc
commit
47bcab6732
@ -70,6 +70,10 @@ func Home(ctx *context.Context) {
|
|||||||
orderBy = db.SearchOrderByForksReverse
|
orderBy = db.SearchOrderByForksReverse
|
||||||
case "fewestforks":
|
case "fewestforks":
|
||||||
orderBy = db.SearchOrderByForks
|
orderBy = db.SearchOrderByForks
|
||||||
|
case "size":
|
||||||
|
orderBy = db.SearchOrderByGitSize
|
||||||
|
case "reversesize":
|
||||||
|
orderBy = db.SearchOrderByGitSizeReverse
|
||||||
default:
|
default:
|
||||||
ctx.Data["SortType"] = "recentupdate"
|
ctx.Data["SortType"] = "recentupdate"
|
||||||
orderBy = db.SearchOrderByRecentUpdated
|
orderBy = db.SearchOrderByRecentUpdated
|
||||||
|
@ -132,6 +132,10 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
|
|||||||
orderBy = db.SearchOrderByForksReverse
|
orderBy = db.SearchOrderByForksReverse
|
||||||
case "fewestforks":
|
case "fewestforks":
|
||||||
orderBy = db.SearchOrderByForks
|
orderBy = db.SearchOrderByForks
|
||||||
|
case "size":
|
||||||
|
orderBy = db.SearchOrderByGitSize
|
||||||
|
case "reversesize":
|
||||||
|
orderBy = db.SearchOrderByGitSizeReverse
|
||||||
default:
|
default:
|
||||||
ctx.Data["SortType"] = "recentupdate"
|
ctx.Data["SortType"] = "recentupdate"
|
||||||
orderBy = db.SearchOrderByRecentUpdated
|
orderBy = db.SearchOrderByRecentUpdated
|
||||||
|
Loading…
Reference in New Issue
Block a user