From 31ab331b233d09568d47ffa25ea5516282d8e71b Mon Sep 17 00:00:00 2001
From: wxiaoguang
Date: Tue, 28 Mar 2023 00:05:51 +0800
Subject: [PATCH] Remove incorrect HTML self close tag (#23748)
HTML is not XML.
---
templates/admin/auth/edit.tmpl | 10 +++++-----
templates/admin/auth/new.tmpl | 2 +-
templates/admin/auth/source/oauth.tmpl | 10 +++++-----
templates/admin/cron.tmpl | 2 +-
templates/admin/dashboard.tmpl | 4 ++--
templates/admin/user/edit.tmpl | 2 +-
templates/api/packages/pypi/simple.tmpl | 2 +-
templates/home.tmpl | 2 +-
templates/install.tmpl | 2 +-
templates/mail/auth/activate.tmpl | 4 ++--
templates/mail/auth/activate_email.tmpl | 4 ++--
templates/mail/auth/register_notify.tmpl | 4 ++--
templates/mail/auth/reset_passwd.tmpl | 4 ++--
templates/mail/issue/assigned.tmpl | 2 +-
templates/mail/issue/default.tmpl | 2 +-
templates/mail/notify/collaborator.tmpl | 2 +-
templates/mail/notify/repo_transfer.tmpl | 2 +-
templates/mail/release.tmpl | 2 +-
templates/mail/team_invite.tmpl | 4 ++--
templates/org/create.tmpl | 8 ++++----
templates/org/settings/options.tmpl | 8 ++++----
templates/org/team/members.tmpl | 2 +-
templates/org/team/sidebar.tmpl | 2 +-
templates/post-install.tmpl | 2 +-
templates/repo/commit_page.tmpl | 2 +-
templates/repo/create.tmpl | 4 ++--
templates/repo/diff/comment_form.tmpl | 2 +-
templates/repo/diff/image_diff.tmpl | 14 +++++++-------
templates/repo/diff/new_review.tmpl | 2 +-
templates/repo/graph/svgcontainer.tmpl | 4 ++--
templates/repo/issue/choose.tmpl | 4 ++--
.../repo/issue/labels/edit_delete_label.tmpl | 2 +-
.../repo/issue/labels/label_load_template.tmpl | 4 ++--
templates/repo/issue/labels/label_new.tmpl | 2 +-
templates/repo/issue/milestones.tmpl | 2 +-
templates/repo/issue/search.tmpl | 14 +++++++-------
templates/repo/issue/view_content.tmpl | 2 +-
templates/repo/issue/view_content/sidebar.tmpl | 6 +++---
templates/repo/migrate/migrating.tmpl | 4 ++--
templates/repo/projects/view.tmpl | 2 +-
templates/repo/pulls/files.tmpl | 2 +-
templates/repo/release/new.tmpl | 8 ++++----
templates/repo/settings/lfs_pointers.tmpl | 2 +-
templates/repo/settings/options.tmpl | 8 ++++----
templates/repo/settings/tags.tmpl | 2 +-
templates/status/404.tmpl | 2 +-
templates/status/500.tmpl | 2 +-
templates/user/auth/grant.tmpl | 2 +-
templates/user/dashboard/issues.tmpl | 8 ++++----
templates/user/dashboard/milestones.tmpl | 8 ++++----
.../user/notification/notification_div.tmpl | 16 ++++++++--------
templates/user/profile.tmpl | 2 +-
templates/user/settings/profile.tmpl | 2 +-
53 files changed, 111 insertions(+), 111 deletions(-)
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index c798be02f..9b0777465 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -328,11 +328,11 @@
{{range .OAuth2Providers}}{{if .CustomURLSettings}}
-
-
-
-
-
+
+
+
+
+
{{end}}{{end}}
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl
index 9078fda46..b7715cb5f 100644
--- a/templates/admin/auth/new.tmpl
+++ b/templates/admin/auth/new.tmpl
@@ -38,7 +38,7 @@
-
+
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl
index 1080937f9..e4ae736e8 100644
--- a/templates/admin/auth/source/oauth.tmpl
+++ b/templates/admin/auth/source/oauth.tmpl
@@ -65,11 +65,11 @@
{{range .OAuth2Providers}}{{if .CustomURLSettings}}
-
-
-
-
-
+
+
+
+
+
{{end}}{{end}}
diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl
index e03208e5c..29e4bc09b 100644
--- a/templates/admin/cron.tmpl
+++ b/templates/admin/cron.tmpl
@@ -29,7 +29,7 @@
{{end}}
-
+
{{.CsrfTokenHtml}}
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index 40f28068d..d2ba1e2b0 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -42,12 +42,12 @@
{{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
- {{.locale.Tr "admin.dashboard.resync_all_sshkeys"}}
+ | {{.locale.Tr "admin.dashboard.resync_all_sshkeys"}}
{{.locale.Tr "admin.dashboard.resync_all_sshkeys.desc"}} |
|
- {{.locale.Tr "admin.dashboard.resync_all_sshprincipals"}}
+ | {{.locale.Tr "admin.dashboard.resync_all_sshprincipals"}}
{{.locale.Tr "admin.dashboard.resync_all_sshprincipals.desc"}} |
|
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 236894af4..4fd0d892f 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -171,7 +171,7 @@
-
+
{{end}}
diff --git a/templates/api/packages/pypi/simple.tmpl b/templates/api/packages/pypi/simple.tmpl
index d8e480d9c..77cb03560 100644
--- a/templates/api/packages/pypi/simple.tmpl
+++ b/templates/api/packages/pypi/simple.tmpl
@@ -8,7 +8,7 @@
{{range .PackageDescriptors}}
{{$p := .}}
{{range .Files}}
- {{.File.Name}}
+ {{.File.Name}}
{{end}}
{{end}}
diff --git a/templates/home.tmpl b/templates/home.tmpl
index 52ad1b12d..cc1026ce9 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -3,7 +3,7 @@
-
+
-
+
{{template "base/footer" .}}
diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl
index 75a0b8564..a15afe3d4 100644
--- a/templates/mail/auth/activate.tmpl
+++ b/templates/mail/auth/activate.tmpl
@@ -1,8 +1,8 @@
-
-
+
+
{{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}}
diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl
index 0a24dc19c..b15cc2a68 100644
--- a/templates/mail/auth/activate_email.tmpl
+++ b/templates/mail/auth/activate_email.tmpl
@@ -1,8 +1,8 @@
-
-
+
+
{{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}}
diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl
index 673e84c5c..3cdb456fb 100644
--- a/templates/mail/auth/register_notify.tmpl
+++ b/templates/mail/auth/register_notify.tmpl
@@ -1,8 +1,8 @@
-
-
+
+
{{.locale.Tr "mail.register_notify.title" (.DisplayName|DotEscape) AppName}}
diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl
index 6a3625ab7..172844c95 100644
--- a/templates/mail/auth/reset_passwd.tmpl
+++ b/templates/mail/auth/reset_passwd.tmpl
@@ -1,8 +1,8 @@
-
-
+
+
{{.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape)}}
diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl
index 05bed6902..d02ea3991 100644
--- a/templates/mail/issue/assigned.tmpl
+++ b/templates/mail/issue/assigned.tmpl
@@ -4,7 +4,7 @@
-
+
{{.Subject}}
diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl
index 64dbb3df6..422a4f046 100644
--- a/templates/mail/issue/default.tmpl
+++ b/templates/mail/issue/default.tmpl
@@ -1,7 +1,7 @@
-
+
{{.Subject}}
-
+
{{.Subject}}
diff --git a/templates/mail/notify/repo_transfer.tmpl b/templates/mail/notify/repo_transfer.tmpl
index 85ed96f3f..586f83e65 100644
--- a/templates/mail/notify/repo_transfer.tmpl
+++ b/templates/mail/notify/repo_transfer.tmpl
@@ -1,7 +1,7 @@
-
+
{{.Subject}}
diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl
index b2acdce8b..f588d8224 100644
--- a/templates/mail/release.tmpl
+++ b/templates/mail/release.tmpl
@@ -1,7 +1,7 @@
-
+
{{.Subject}}