summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-05-05 13:14:22 +0800
committerGitHub <noreply@github.com>2023-05-05 05:14:22 +0000
commit421840486f4f09ed3bcab98472e58d357853aae6 (patch)
tree84b88a0c1dc30294bf24749bf0e0719207378666
parent81d6007055bdd6f5d5559b54174f8f3f94253003 (diff)
downloadgitea-421840486f4f09ed3bcab98472e58d357853aae6.tar.gz
gitea-421840486f4f09ed3bcab98472e58d357853aae6.zip
Fix form method/class (#24535)
Fix #24534
-rw-r--r--templates/repo/settings/options.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index cd2854c062..b26656bf28 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -91,7 +91,7 @@
<td>{{$.locale.Tr "repo.settings.mirror_settings.direction.pull"}}</td>
<td>{{DateTime "full" .Mirror.UpdatedUnix}}</td>
<td class="right aligned">
- <form method="post gt-dib">
+ <form method="post" class="gt-dib">
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="mirror-sync">
<button class="ui primary tiny button inline text-thin">{{$.locale.Tr "repo.settings.sync_mirror"}}</button>
@@ -169,13 +169,13 @@
<td>{{$.locale.Tr "repo.settings.mirror_settings.direction.push"}}</td>
<td>{{if .LastUpdateUnix}}{{DateTime "full" .LastUpdateUnix}}{{else}}{{$.locale.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label" data-tooltip-content="{{.LastError}}">{{$.locale.Tr "error"}}</div>{{end}}</td>
<td class="right aligned">
- <form method="post gt-dib">
+ <form method="post" class="gt-dib">
{{$.CsrfTokenHtml}}
<input type="hidden" name="action" value="push-mirror-remove">
<input type="hidden" name="push_mirror_id" value="{{.ID}}">
<button class="ui basic red tiny button inline text-thin">{{$.locale.Tr "remove"}}</button>
</form>
- <form method="post gt-dib">
+ <form method="post" class="gt-dib">
{{$.CsrfTokenHtml}}
<input type="hidden" name="action" value="push-mirror-sync">
<input type="hidden" name="push_mirror_id" value="{{.ID}}">