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/routers
zeripath 1bf7b8d7c1
Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581)
signing.wont_sign.%!s(<nil>) will be displayed if the repository needs signed
commits but the user is not logged in.

This is displayed because of complicated logic in the the template repo/issue/view_content/pull.tmpl
and a shortcut in the code of routers/repo/issue.go

This PR adds a default value of notsignedin if users are not signed in, which
although our templates will not show will prevent custom templates from showing
the above.

It also fixes the template to avoid showing signing errors if the user is not
authorized to sign.

Replaces #12564
Close #12564

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago
..
admin Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 5 years ago
api/v1 Allow addition of gpg keyring with multiple keys (#12487) 5 years ago
dev Display ui time with customize time location (#7792) 6 years ago
events Add EventSource support (#11235) 5 years ago
org Move jquery-minicolors to npm/webpack (#12305) 5 years ago
private Initial support for push options (#12169) 5 years ago
repo Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 5 years ago
routes Hide 'New Project board' button for users that are not signed in (#12547) 5 years ago
user Allow addition of gpg keyring with multiple keys (#12487) 5 years ago
utils Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
home.go Show 2FA info on Admin Pannel: Users List (#12515) 5 years ago
init.go Add a storage layer for attachments (#11387) 5 years ago
install.go models: fix xorm variable clobber (#12231) 5 years ago
metrics.go Use gitea forked macaron (#7933) 6 years ago
swagger_json.go Add gitea-vet (#10948) 5 years ago