You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates
oliverpool 8030614386
fix: release page for empty or non-existing target (#24470)
Fixes #24145

To solve the bug, I added a "computed" `TargetBehind` field to the
`Release` model, which indicates the target branch of a release.
This is particularly useful if the target branch was deleted in the
meantime (or is empty).

I also did a micro-optimization in `calReleaseNumCommitsBehind`. Instead
of checking that a branch exists and then call `GetBranchCommit`, I
immediately call `GetBranchCommit` and handle the `git.ErrNotExist`
error.

This optimization is covered by the added unit test.
2 years ago
..
admin Rewrite queue (#24505) 2 years ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Improve template system and panic recovery (#24461) 2 years ago
code Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve some modal action buttons (#24289) 2 years ago
explore Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 2 years ago
mail Remove incorrect HTML self close tag (#23748) 2 years ago
org Revert "Prevent a user with a different email from accepting the team invite" (#24531) 2 years ago
package Add RPM registry (#23380) 2 years ago
projects Add permission check for moving issue action in project view page (#24589) 2 years ago
repo fix: release page for empty or non-existing target (#24470) 2 years ago
shared Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2 years ago
status Improve template system and panic recovery (#24461) 2 years ago
swagger Filter get single commit (#24613) 2 years ago
user Add Gitea Profile Readmes (#23260) 2 years ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2 years ago
install.tmpl Remove incorrect HTML self close tag (#23748) 2 years ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 2 years ago