mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Use dynamic package type list (#22263)
Replace the hardcoded list with the dynamic list.
This commit is contained in:
parent
ca67c5a8a7
commit
309e86a9bf
5 changed files with 9 additions and 24 deletions
|
@ -89,6 +89,7 @@ func ListPackages(ctx *context.Context) {
|
|||
ctx.Data["ContextUser"] = ctx.ContextUser
|
||||
ctx.Data["Query"] = query
|
||||
ctx.Data["PackageType"] = packageType
|
||||
ctx.Data["AvailableTypes"] = packages_model.TypeList
|
||||
ctx.Data["HasPackages"] = hasPackages
|
||||
ctx.Data["PackageDescriptors"] = pds
|
||||
ctx.Data["Total"] = total
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue