From ccd538d2629426f4e6729dd4d5c14b81142fb32e Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 17 Jun 2022 08:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E4=BB=BB=E5=8A=A1=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/routes/routes.go | 2 +- templates/repo/modelmanage/convertIndex.tmpl | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 4bd9fb6b6..5570e8a6b 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -366,7 +366,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/user", func() { m.Get("/login", user.SignIn) m.Get("/login/cloud_brain", user.SignInCloudBrain) - + m.Post("/login", bindIgnErr(auth.SignInForm{}), user.SignInPost) m.Group("", func() { m.Combo("/login/openid"). diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index a1f89b4a3..718d7b233 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -97,15 +97,17 @@
- - {{if .IsCanOper}} - +
+ {{$.CsrfTokenHtml}} + {{if .IsCanOper}} + {{$.i18n.Tr "repo.stop"}} - {{else}} + {{else}} {{$.i18n.Tr "repo.stop"}} - {{end}} - + {{end}} +
+
{{$.CsrfTokenHtml}}