0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-30 08:18:25 +01:00
gitea/templates/repo/issue/view_content
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
..
add_reaction.tmpl Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
attachments.tmpl Prevent empty div when editing comment (#12404) 2020-08-04 22:30:02 +01:00
comments.tmpl Kanban board (#8346) 2020-08-16 23:07:38 -04:00
context_menu.tmpl Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
pull.tmpl Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
reactions.tmpl Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
sidebar.tmpl Kanban board (#8346) 2020-08-16 23:07:38 -04:00