mirror of
https://gitee.com/gitea/gitea
synced 2026-01-02 13:46:36 +08:00
Use dynamic package type list (#22263)
Replace the hardcoded list with the dynamic list.
This commit is contained in:
@@ -62,6 +62,7 @@ func Packages(ctx *context.Context) {
|
||||
ctx.Data["PageIsAdminPackages"] = true
|
||||
ctx.Data["Query"] = query
|
||||
ctx.Data["PackageType"] = packageType
|
||||
ctx.Data["AvailableTypes"] = packages_model.TypeList
|
||||
ctx.Data["SortType"] = sort
|
||||
ctx.Data["PackageDescriptors"] = pds
|
||||
ctx.Data["Total"] = total
|
||||
|
||||
Reference in New Issue
Block a user