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 c798be02ff7f..9b0777465347 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 9078fda469b7..b7715cb5fe42 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 1080937f9134..e4ae736e8fa6 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 e03208e5c819..29e4bc09bcaa 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 40f28068d7d6..d2ba1e2b010d 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 236894af4d4c..4fd0d892f258 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 d8e480d9c675..77cb035600b2 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 52ad1b12dfc1..cc1026ce9e7d 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 75a0b8564abc..a15afe3d49b7 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 0a24dc19c812..b15cc2a68a7e 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 673e84c5c78e..3cdb456fb38c 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 6a3625ab7826..172844c954f4 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 05bed6902221..d02ea399189f 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 64dbb3df681e..422a4f046110 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 85ed96f3f734..586f83e65258 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 b2acdce8b2b4..f588d8224f3a 100644
--- a/templates/mail/release.tmpl
+++ b/templates/mail/release.tmpl
@@ -1,7 +1,7 @@
-
+
{{.Subject}}