gitea/templates/package/metadata
wxiaoguang de9bcd1d23
Avoid 500 panic error when uploading invalid maven package file ()
PackageDescriptor.Metadata might be nil (and maybe not only for maven).
This is only a quick fix.

The new `if` block is written intentionally to avoid unnecessary
indenting to the existing code.
..
alpine.tmpl Migrate margin and padding helpers to tailwind ()
cargo.tmpl Migrate margin and padding helpers to tailwind ()
chef.tmpl Migrate margin and padding helpers to tailwind ()
composer.tmpl Migrate margin and padding helpers to tailwind ()
conan.tmpl Migrate margin and padding helpers to tailwind ()
conda.tmpl Migrate margin and padding helpers to tailwind ()
container.tmpl Migrate margin and padding helpers to tailwind ()
cran.tmpl Always use `ctx.Locale.Tr` inside templates ()
debian.tmpl Always use `ctx.Locale.Tr` inside templates ()
generic.tmpl Add Package Registry ()
helm.tmpl Migrate margin and padding helpers to tailwind ()
maven.tmpl Avoid 500 panic error when uploading invalid maven package file ()
npm.tmpl Migrate margin and padding helpers to tailwind ()
nuget.tmpl Migrate margin and padding helpers to tailwind ()
pub.tmpl Migrate margin and padding helpers to tailwind ()
pypi.tmpl Migrate margin and padding helpers to tailwind ()
rpm.tmpl Migrate margin and padding helpers to tailwind ()
rubygems.tmpl Migrate margin and padding helpers to tailwind ()
swift.tmpl Migrate margin and padding helpers to tailwind ()
vagrant.tmpl Migrate margin and padding helpers to tailwind ()