From 4f8763c4fdc8020ac8c3f69c2c7c61b48fe21f60 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 20 Mar 2024 14:58:10 +0800 Subject: [PATCH] Remove unnecessary ".Link" usages (#29929) Follow #29909 (cherry picked from commit 91699a9bb1fc59029a2605912f1e380eff7297fa) --- templates/admin/notice.tmpl | 2 +- templates/admin/stacktrace.tmpl | 4 ++-- templates/repo/wiki/new.tmpl | 2 +- templates/user/auth/reset_passwd.tmpl | 2 +- templates/user/dashboard/issues.tmpl | 16 ++++++++-------- templates/user/dashboard/milestones.tmpl | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index e0abe4f8c0..26462596bc 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -49,7 +49,7 @@ - diff --git a/templates/admin/stacktrace.tmpl b/templates/admin/stacktrace.tmpl index 42944615c3..950aa0ea86 100644 --- a/templates/admin/stacktrace.tmpl +++ b/templates/admin/stacktrace.tmpl @@ -4,8 +4,8 @@
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 0d0e78c7ad..118dc7c8f0 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -9,7 +9,7 @@ {{ctx.Locale.Tr "repo.wiki.new_page_button"}} {{end}}
- + {{.CsrfTokenHtml}}
diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index 4d569e206c..f8303feef3 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -51,7 +51,7 @@
{{if and .has_two_factor (not .scratch_code)}} - {{ctx.Locale.Tr "auth.use_scratch_code"}} + {{ctx.Locale.Tr "auth.use_scratch_code"}} {{end}}
{{else}} diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index c9972f9426..88afcf58ec 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -5,29 +5,29 @@