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/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>
5 years ago
..
labels Improve label edit buttons labels (#11841) 5 years ago
view_content Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 5 years ago
branch_selector_field.tmpl Fix ref links in issue overviews for tags (#8742) 5 years ago
comment_tab.tmpl Prettify timeline 3 (#11139) 5 years ago
label_precolors.tmpl Indent all templates with tabs 9 years ago
labels.tmpl Add Organization Wide Labels (#10814) 5 years ago
list.tmpl Fix milestone links (#12405) 5 years ago
milestone_issues.tmpl Milestone Issue/Pull List: Add octicons type (#12499) 5 years ago
milestone_new.tmpl Replace jquery-datetimepicker with native date input (#11684) 5 years ago
milestones.tmpl Change action GETs to POST (#10462) 5 years ago
navbar.tmpl Search bar for issues/pulls (#530) 8 years ago
new.tmpl Indent all templates with tabs 9 years ago
new_form.tmpl Kanban board (#8346) 5 years ago
search.tmpl Disable search box autofocus on issue/pr pages (#12229) 5 years ago
view.tmpl Prettify timeline 3 (#11139) 5 years ago
view_content.tmpl Fix to allow comment poster to edit or delete his own comments (#11671) 5 years ago
view_title.tmpl Support unicode emojis and remove emojify.js (#11032) 5 years ago