gitea/templates
techknowlogick 20601f8463
Prevent 500 on draft releases without tag (#16634) (#16636)
It is possible to create draft releases prior to creating a tag. This will cause a
500 on the releases page due to compare page failing.

This PR only shows the compare button if there is a SHA1 present.

Fix #16610

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-08-06 11:09:33 +03:00
..
admin Make allowed Visiblity modes configurable for Users (#16271) 2021-06-27 19:47:35 +01:00
base Add custom emoji support (#16004) 2021-06-29 16:28:38 +02:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Issue sidebar and misc css fixes (#15524) 2021-05-16 22:18:18 +02:00
mail Use TrN helper for email templates (#16425) 2021-07-14 15:06:09 +02:00
org Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
repo Prevent 500 on draft releases without tag (#16634) (#16636) 2021-08-06 11:09:33 +03:00
shared Remove branch URL before IssueRefURL (#15968) 2021-05-25 16:02:37 -04:00
status Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
swagger Swagger AccessToken fixes (#16574) (#16597) 2021-08-02 20:24:47 +02:00
user Update notification table with only latest data (#16445) (#16469) 2021-07-17 19:05:59 +02:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Remove utf8 option from installation page (#16126) 2021-06-10 16:52:37 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00