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/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>
5 years ago
..
admin Show 2FA info on Admin Pannel: Users List (#12515) 5 years ago
base Kanban board (#8346) 5 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Update Octicons to v10 (#12240) 5 years ago
mail Add email notify for new release (#12463) 5 years ago
org Show 2FA info on Admin Pannel: Users List (#12515) 5 years ago
pwa Move serviceworker to workbox and fix SSE interference (#11538) 5 years ago
repo Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 5 years ago
status Make error pages translatable (#11163) 5 years ago
swagger Kanban board (#8346) 5 years ago
user Add placeholder text for "Add SSH/GPG Key" forms (#12533) 5 years ago
home.tmpl Add Octicon SVG spritemap (#10107) 5 years ago
install.tmpl Change default charset for MySQL on install to utf8mb4 (#10989) 5 years ago