0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 08:54:39 +01:00
gitea/templates/repo
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
..
branch
diff Do not show arrows on comment diffs on pull comment pages (#12434) 2020-08-08 09:22:34 +08:00
editor
issue Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in (#12581) 2020-08-23 22:59:41 +01:00
projects Hide 'New Project board' button for users that are not signed in (#12547) 2020-08-22 02:58:59 -04:00
pulls
release
settings Kanban board (#8346) 2020-08-16 23:07:38 -04:00
wiki
activity.tmpl
blame.tmpl
branch_dropdown.tmpl
commit_page.tmpl Match GH with Commit page (#12425) 2020-08-05 09:32:13 +08:00
commit_status.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl
commits_table.tmpl
create.tmpl
empty.tmpl
forks.tmpl
graph.tmpl Render the git graph on the server (#12333) 2020-08-06 09:04:08 +01:00
header.tmpl Kanban board (#8346) 2020-08-16 23:07:38 -04:00
header_icon.tmpl
home.tmpl
migrate.tmpl
migrating.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl UI: Fix wrong closing tag (#11910) 2020-06-16 11:27:20 -04:00
user_cards.tmpl
view_file.tmpl
view_list.tmpl Increase clickable area on files table links (#12553) 2020-08-23 20:05:17 +01:00
watchers.tmpl