diff options
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/packages/list.tmpl | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/templates/admin/packages/list.tmpl b/templates/admin/packages/list.tmpl index 3aab2873c6..c39f5fc128 100644 --- a/templates/admin/packages/list.tmpl +++ b/templates/admin/packages/list.tmpl @@ -13,18 +13,9 @@ <select class="ui dropdown" name="type"> <option value="">{{.locale.Tr "packages.filter.type"}}</option> <option value="all">{{.locale.Tr "packages.filter.type.all"}}</option> - <option value="composer" {{if eq .PackageType "composer"}}selected="selected"{{end}}>Composer</option> - <option value="conan" {{if eq .PackageType "conan"}}selected="selected"{{end}}>Conan</option> - <option value="container" {{if eq .PackageType "container"}}selected="selected"{{end}}>Container</option> - <option value="generic" {{if eq .PackageType "generic"}}selected="selected"{{end}}>Generic</option> - <option value="helm" {{if eq .PackageType "helm"}}selected="selected"{{end}}>Helm</option> - <option value="maven" {{if eq .PackageType "maven"}}selected="selected"{{end}}>Maven</option> - <option value="npm" {{if eq .PackageType "npm"}}selected="selected"{{end}}>npm</option> - <option value="nuget" {{if eq .PackageType "nuget"}}selected="selected"{{end}}>NuGet</option> - <option value="pub" {{if eq .PackageType "pub"}}selected="selected"{{end}}>Pub</option> - <option value="pypi" {{if eq .PackageType "pypi"}}selected="selected"{{end}}>PyPi</option> - <option value="rubygems" {{if eq .PackageType "rubygems"}}selected="selected"{{end}}>RubyGems</option> - <option value="vagrant" {{if eq .PackageType "vagrant"}}selected="selected"{{end}}>Vagrant</option> + {{range $type := .AvailableTypes}} + <option{{if eq $.PackageType $type}} selected="selected"{{end}} value="{{$type}}">{{$type.Name}}</option> + {{end}} </select> <button class="ui primary button">{{.locale.Tr "explore.search"}}</button> </div> |