diff options
author | Matthew R. McDougal <24367033+mmdoogie@users.noreply.github.com> | 2020-05-20 13:35:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 14:35:16 -0400 |
commit | 689e7e883195dd84380d8c551783a80b636c38e7 (patch) | |
tree | dfb069544f178b3883708c1a37758dba35e5fb7e /templates/admin | |
parent | 21243bb46f6ecafa185b0727001b31ec3fe13758 (diff) | |
download | gitea-689e7e883195dd84380d8c551783a80b636c38e7.tar.gz gitea-689e7e883195dd84380d8c551783a80b636c38e7.zip |
Fix form action template substitutions on admin pages (#11519)
* Fix form action template substitution on admin dashboard
* Fix form action template substitution on admin monitoring page
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/dashboard.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/monitor.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 0079fc78d7..c1ac8fb489 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -15,7 +15,7 @@ {{.i18n.Tr "admin.dashboard.operations"}} </h4> <div class="ui attached table segment"> - <form method="post" action="{{.AppSubUrl}}/admin"> + <form method="post" action="{{AppSubUrl}}/admin"> {{.CsrfTokenHtml}} <table class="ui very basic table"> <tbody> diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index 26fbcb60ac..2980a2e9d8 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -7,7 +7,7 @@ {{.i18n.Tr "admin.monitor.cron"}} </h4> <div class="ui attached table segment"> - <form method="post" action="{{.AppSubUrl}}/admin"> + <form method="post" action="{{AppSubUrl}}/admin"> {{.CsrfTokenHtml}} <table class="ui very basic striped table"> <thead> |