This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/templates
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
..
admin Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
base Kanban board (#8346) 2020-08-16 23:07:38 -04:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
mail Add email notify for new release (#12463) 2020-08-23 16:03:18 +01:00
org Show 2FA info on Admin Pannel: Users List (#12515) 2020-08-20 09:53:49 +08:00
pwa Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
repo Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
status Make error pages translatable (#11163) 2020-04-27 18:03:15 -05:00
swagger Kanban board (#8346) 2020-08-16 23:07:38 -04:00
user Add placeholder text for "Add SSH/GPG Key" forms (#12533) 2020-08-20 11:51:34 -04:00
home.tmpl Add Octicon SVG spritemap (#10107) 2020-02-11 12:02:41 -05:00
install.tmpl Change default charset for MySQL on install to utf8mb4 (#10989) 2020-04-06 09:33:15 -04:00