gitea/templates
techknowlogick 20601f8463
Prevent 500 on draft releases without tag () ()
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 

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>
..
admin Make allowed Visiblity modes configurable for Users ()
base Add custom emoji support ()
custom Add footer extra links template ()
explore Issue sidebar and misc css fixes ()
mail Use TrN helper for email templates ()
org Rename StaticUrlPrefix to AssetUrlPrefix ()
repo Prevent 500 on draft releases without tag () ()
shared Remove branch URL before IssueRefURL ()
status Rename StaticUrlPrefix to AssetUrlPrefix ()
swagger Swagger AccessToken fixes () ()
user Update notification table with only latest data () ()
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix ()
install.tmpl Remove utf8 option from installation page ()
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix ()