1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/templates/repo/issue
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
..
labels Improve label edit buttons labels (#11841) 2020-06-11 17:06:20 -04:00
view_content Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
branch_selector_field.tmpl Fix ref links in issue overviews for tags (#8742) 2020-05-14 18:55:43 -04:00
comment_tab.tmpl Prettify timeline 3 (#11139) 2020-05-14 15:15:21 -04:00
label_precolors.tmpl Indent all templates with tabs 2015-12-08 00:57:46 +01:00
labels.tmpl Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
list.tmpl Fix milestone links (#12405) 2020-08-02 09:18:09 +01:00
milestone_issues.tmpl Milestone Issue/Pull List: Add octicons type (#12499) 2020-08-17 15:11:42 -04:00
milestone_new.tmpl Replace jquery-datetimepicker with native date input (#11684) 2020-06-10 14:35:27 -04:00
milestones.tmpl Change action GETs to POST (#10462) 2020-02-25 14:28:47 -06:00
navbar.tmpl Search bar for issues/pulls (#530) 2017-01-25 10:43:02 +08:00
new.tmpl Indent all templates with tabs 2015-12-08 00:57:46 +01:00
new_form.tmpl Kanban board (#8346) 2020-08-16 23:07:38 -04:00
search.tmpl Disable search box autofocus on issue/pr pages (#12229) 2020-07-26 22:43:14 -04:00
view.tmpl Prettify timeline 3 (#11139) 2020-05-14 15:15:21 -04:00
view_content.tmpl Fix to allow comment poster to edit or delete his own comments (#11671) 2020-06-05 13:10:10 +03:00
view_title.tmpl Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00