summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew R. McDougal <24367033+mmdoogie@users.noreply.github.com>2020-05-21 22:02:56 -0500
committerGitHub <noreply@github.com>2020-05-21 23:02:56 -0400
commit7b438b35662f0409ae2c828d49b0b2f605bd2652 (patch)
tree8bf04cab22709f5c36f97a91fe050ef35de98b72 /templates
parent8bde2e9813269305b8cae109cb8ffdbfb4ec19a3 (diff)
downloadgitea-7b438b35662f0409ae2c828d49b0b2f605bd2652.tar.gz
gitea-7b438b35662f0409ae2c828d49b0b2f605bd2652.zip
Fix form action template substitutions on admin pages (backport #11519) (#11531)
* Fix form action template substitution on admin dashboard * Fix form action template substitution on admin monitoring page Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/dashboard.tmpl2
-rw-r--r--templates/admin/monitor.tmpl2
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>