gitea/options
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>
2020-08-23 22:59:41 +01:00
..
gitignore Delete conflicting file (#9526) 2019-12-28 10:43:03 +00:00
label Add label descriptions (#3662) 2018-03-13 10:03:55 +08:00
license chore: update license list (#9436) 2019-12-20 08:17:25 +08:00
locale Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
readme Bindata is optional and over-writable on restart (#354) 2016-12-22 19:12:23 +01:00