]> source.dussan.org Git - gitea.git/commit
Redirect to package after version deletion (#25594) (#25599)
authorKN4CK3R <admin@oldschoolhack.me>
Thu, 29 Jun 2023 22:14:57 +0000 (00:14 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 22:14:57 +0000 (00:14 +0200)
commitc27a3af728775ccb23bd0c56bc8467b6db33c1af
tree97cb0e1d5700b1231f728354ca205d12d7057a00
parent12aca3ef2098a37bdb6ba03c631a68e44d82060a
Redirect to package after version deletion (#25594) (#25599)

Related #25559

Current behaviour:
1. Deletion of a package version
2. Redirect to the owners package list

New behaviour:
1. Deletion of a package version
2.1. If there are more versions available, redirect to the package again
2.2. If there are no versions available, redirect to the owners package
list
routers/web/user/package.go
templates/package/view.tmpl