This commit is contained in:
yp05327 2024-08-26 02:14:40 +00:00
parent b140f647fc
commit 47bcab6732
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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