diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-02-26 10:25:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 10:25:54 -0600 |
commit | bcd16cec63207a627c0c3708afb2796353a907e8 (patch) | |
tree | fea52e71872828bec6094af0496bb03873435bda /templates/admin | |
parent | 084a2b00268ed561f59ac19b1b6660a3c58573b3 (diff) | |
download | gitea-bcd16cec63207a627c0c3708afb2796353a907e8.tar.gz gitea-bcd16cec63207a627c0c3708afb2796353a907e8.zip |
Fix admin notices (#10480)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/notice.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index 93fc8ccc2e..8e56713ece 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -40,7 +40,10 @@ <th></th> <th colspan="5"> <div class="ui right"> - <a class="ui red small button" href="{{AppSubUrl}}/admin/notices/empty">{{.i18n.Tr "admin.notices.delete_all"}}</a> + <form method="post" action="{{AppSubUrl}}/admin/notices/empty"> + {{.CsrfTokenHtml}} + <button type="submit" class="ui red small button">{{.i18n.Tr "admin.notices.delete_all"}}</button> + </form> </div> <div class="ui floating upward dropdown small button"> <span class="text">{{.i18n.Tr "admin.notices.actions"}}</span> |