diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-03-28 00:05:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 18:05:51 +0200 |
commit | 31ab331b233d09568d47ffa25ea5516282d8e71b (patch) | |
tree | b973b2cbb4864676242415d89851468f577a8662 /templates | |
parent | ec261b63e14f84da3e2d9a6e27c8b831a7750677 (diff) | |
download | gitea-31ab331b233d09568d47ffa25ea5516282d8e71b.tar.gz gitea-31ab331b233d09568d47ffa25ea5516282d8e71b.zip |
Remove incorrect HTML self close tag (#23748)
HTML is not XML.
Diffstat (limited to 'templates')
53 files changed, 111 insertions, 111 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index c798be02ff..9b07774653 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -328,11 +328,11 @@ {{range .OAuth2Providers}}{{if .CustomURLSettings}} <input id="{{.Name}}_customURLSettings" type="hidden" data-required="{{.CustomURLSettings.Required}}" data-available="true"> - <input id="{{.Name}}_token_url" value="{{.CustomURLSettings.TokenURL.Value}}" data-available="{{.CustomURLSettings.TokenURL.Available}}" data-required="{{.CustomURLSettings.TokenURL.Required}}" type="hidden" /> - <input id="{{.Name}}_auth_url" value="{{.CustomURLSettings.AuthURL.Value}}" data-available="{{.CustomURLSettings.AuthURL.Available}}" data-required="{{.CustomURLSettings.AuthURL.Required}}" type="hidden" /> - <input id="{{.Name}}_profile_url" value="{{.CustomURLSettings.ProfileURL.Value}}" data-available="{{.CustomURLSettings.ProfileURL.Available}}" data-required="{{.CustomURLSettings.ProfileURL.Required}}" type="hidden" /> - <input id="{{.Name}}_email_url" value="{{.CustomURLSettings.EmailURL.Value}}" data-available="{{.CustomURLSettings.EmailURL.Available}}" data-required="{{.CustomURLSettings.EmailURL.Required}}" type="hidden" /> - <input id="{{.Name}}_tenant" value="{{.CustomURLSettings.Tenant.Value}}" data-available="{{.CustomURLSettings.Tenant.Available}}" data-required="{{.CustomURLSettings.Tenant.Required}}" type="hidden" /> + <input id="{{.Name}}_token_url" value="{{.CustomURLSettings.TokenURL.Value}}" data-available="{{.CustomURLSettings.TokenURL.Available}}" data-required="{{.CustomURLSettings.TokenURL.Required}}" type="hidden"> + <input id="{{.Name}}_auth_url" value="{{.CustomURLSettings.AuthURL.Value}}" data-available="{{.CustomURLSettings.AuthURL.Available}}" data-required="{{.CustomURLSettings.AuthURL.Required}}" type="hidden"> + <input id="{{.Name}}_profile_url" value="{{.CustomURLSettings.ProfileURL.Value}}" data-available="{{.CustomURLSettings.ProfileURL.Available}}" data-required="{{.CustomURLSettings.ProfileURL.Required}}" type="hidden"> + <input id="{{.Name}}_email_url" value="{{.CustomURLSettings.EmailURL.Value}}" data-available="{{.CustomURLSettings.EmailURL.Available}}" data-required="{{.CustomURLSettings.EmailURL.Required}}" type="hidden"> + <input id="{{.Name}}_tenant" value="{{.CustomURLSettings.Tenant.Value}}" data-available="{{.CustomURLSettings.Tenant.Available}}" data-required="{{.CustomURLSettings.Tenant.Required}}" type="hidden"> {{end}}{{end}} <div class="field"> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 9078fda469..b7715cb5fe 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -38,7 +38,7 @@ <!-- PAM --> <div class="pam required field {{if not (eq .type 4)}}gt-hidden{{end}}"> <label for="pam_service_name">{{.locale.Tr "admin.auths.pam_service_name"}}</label> - <input id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}" /> + <input id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}"> <label for="pam_email_domain">{{.locale.Tr "admin.auths.pam_email_domain"}}</label> <input id="pam_email_domain" name="pam_email_domain" value="{{.pam_email_domain}}"> </div> diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl index 1080937f91..e4ae736e8f 100644 --- a/templates/admin/auth/source/oauth.tmpl +++ b/templates/admin/auth/source/oauth.tmpl @@ -65,11 +65,11 @@ {{range .OAuth2Providers}}{{if .CustomURLSettings}} <input id="{{.Name}}_customURLSettings" type="hidden" data-required="{{.CustomURLSettings.Required}}" data-available="true"> - <input id="{{.Name}}_token_url" value="{{.CustomURLSettings.TokenURL.Value}}" data-available="{{.CustomURLSettings.TokenURL.Available}}" data-required="{{.CustomURLSettings.TokenURL.Required}}" type="hidden" /> - <input id="{{.Name}}_auth_url" value="{{.CustomURLSettings.AuthURL.Value}}" data-available="{{.CustomURLSettings.AuthURL.Available}}" data-required="{{.CustomURLSettings.AuthURL.Required}}" type="hidden" /> - <input id="{{.Name}}_profile_url" value="{{.CustomURLSettings.ProfileURL.Value}}" data-available="{{.CustomURLSettings.ProfileURL.Available}}" data-required="{{.CustomURLSettings.ProfileURL.Required}}" type="hidden" /> - <input id="{{.Name}}_email_url" value="{{.CustomURLSettings.EmailURL.Value}}" data-available="{{.CustomURLSettings.EmailURL.Available}}" data-required="{{.CustomURLSettings.EmailURL.Required}}" type="hidden" /> - <input id="{{.Name}}_tenant" value="{{.CustomURLSettings.Tenant.Value}}" data-available="{{.CustomURLSettings.Tenant.Available}}" data-required="{{.CustomURLSettings.Tenant.Required}}" type="hidden" /> + <input id="{{.Name}}_token_url" value="{{.CustomURLSettings.TokenURL.Value}}" data-available="{{.CustomURLSettings.TokenURL.Available}}" data-required="{{.CustomURLSettings.TokenURL.Required}}" type="hidden"> + <input id="{{.Name}}_auth_url" value="{{.CustomURLSettings.AuthURL.Value}}" data-available="{{.CustomURLSettings.AuthURL.Available}}" data-required="{{.CustomURLSettings.AuthURL.Required}}" type="hidden"> + <input id="{{.Name}}_profile_url" value="{{.CustomURLSettings.ProfileURL.Value}}" data-available="{{.CustomURLSettings.ProfileURL.Available}}" data-required="{{.CustomURLSettings.ProfileURL.Required}}" type="hidden"> + <input id="{{.Name}}_email_url" value="{{.CustomURLSettings.EmailURL.Value}}" data-available="{{.CustomURLSettings.EmailURL.Available}}" data-required="{{.CustomURLSettings.EmailURL.Required}}" type="hidden"> + <input id="{{.Name}}_tenant" value="{{.CustomURLSettings.Tenant.Value}}" data-available="{{.CustomURLSettings.Tenant.Available}}" data-required="{{.CustomURLSettings.Tenant.Required}}" type="hidden"> {{end}}{{end}} <div class="field"> diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl index e03208e5c8..29e4bc09bc 100644 --- a/templates/admin/cron.tmpl +++ b/templates/admin/cron.tmpl @@ -29,7 +29,7 @@ {{end}} </tbody> </table> - <input type="hidden" name="from" value="monitor"/> + <input type="hidden" name="from" value="monitor"> {{.CsrfTokenHtml}} </form> </div> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 40f28068d7..d2ba1e2b01 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -42,12 +42,12 @@ </tr> {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} <tr> - <td>{{.locale.Tr "admin.dashboard.resync_all_sshkeys"}}<br/> + <td>{{.locale.Tr "admin.dashboard.resync_all_sshkeys"}}<br> {{.locale.Tr "admin.dashboard.resync_all_sshkeys.desc"}}</td> <td><button type="submit" class="ui green button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{.locale.Tr "admin.dashboard.operation_run"}}</button></td> </tr> <tr> - <td>{{.locale.Tr "admin.dashboard.resync_all_sshprincipals"}}<br/> + <td>{{.locale.Tr "admin.dashboard.resync_all_sshprincipals"}}<br> {{.locale.Tr "admin.dashboard.resync_all_sshprincipals.desc"}}</td> <td><button type="submit" class="ui green button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{.locale.Tr "admin.dashboard.operation_run"}}</button></td> </tr> diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 236894af4d..4fd0d892f2 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -171,7 +171,7 @@ </div> <div class="field {{if .Err_Gravatar}}error{{end}}"> <label for="gravatar">Avatar {{.locale.Tr "email"}}</label> - <input id="gravatar" name="gravatar" value="{{.User.AvatarEmail}}" /> + <input id="gravatar" name="gravatar" value="{{.User.AvatarEmail}}"> </div> {{end}} diff --git a/templates/api/packages/pypi/simple.tmpl b/templates/api/packages/pypi/simple.tmpl index d8e480d9c6..77cb035600 100644 --- a/templates/api/packages/pypi/simple.tmpl +++ b/templates/api/packages/pypi/simple.tmpl @@ -8,7 +8,7 @@ {{range .PackageDescriptors}} {{$p := .}} {{range .Files}} - <a href="{{$.RegistryURL}}/files/{{$p.Package.LowerName}}/{{$p.Version.Version}}/{{.File.Name}}#sha256-{{.Blob.HashSHA256}}"{{if $p.Metadata.RequiresPython}} data-requires-python="{{$p.Metadata.RequiresPython}}"{{end}}>{{.File.Name}}</a><br/> + <a href="{{$.RegistryURL}}/files/{{$p.Package.LowerName}}/{{$p.Version.Version}}/{{.File.Name}}#sha256-{{.Blob.HashSHA256}}"{{if $p.Metadata.RequiresPython}} data-requires-python="{{$p.Metadata.RequiresPython}}"{{end}}>{{.File.Name}}</a><br> {{end}} {{end}} </body> diff --git a/templates/home.tmpl b/templates/home.tmpl index 52ad1b12df..cc1026ce9e 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -3,7 +3,7 @@ <div class="ui stackable middle very relaxed page grid"> <div class="sixteen wide center aligned centered column"> <div> - <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}"/> + <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}"> </div> <div class="hero"> <h1 class="ui icon header title"> diff --git a/templates/install.tmpl b/templates/install.tmpl index 497004005f..2cb5ecd15d 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -346,5 +346,5 @@ </div> </div> </div> -<img class="gt-hidden" src="{{AssetUrlPrefix}}/img/loading.png"/> +<img class="gt-hidden" src="{{AssetUrlPrefix}}/img/loading.png"> {{template "base/footer" .}} diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl index 75a0b8564a..a15afe3d49 100644 --- a/templates/mail/auth/activate.tmpl +++ b/templates/mail/auth/activate.tmpl @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> <title>{{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}}</title> </head> diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index 0a24dc19c8..b15cc2a68a 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta Name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta Name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> <title>{{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}}</title> </head> diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl index 673e84c5c7..3cdb456fb3 100644 --- a/templates/mail/auth/register_notify.tmpl +++ b/templates/mail/auth/register_notify.tmpl @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> <title>{{.locale.Tr "mail.register_notify.title" (.DisplayName|DotEscape) AppName}}</title> </head> diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl index 6a3625ab78..172844c954 100644 --- a/templates/mail/auth/reset_passwd.tmpl +++ b/templates/mail/auth/reset_passwd.tmpl @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> <title>{{.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape)}}</title> </head> diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl index 05bed69022..d02ea39918 100644 --- a/templates/mail/issue/assigned.tmpl +++ b/templates/mail/issue/assigned.tmpl @@ -4,7 +4,7 @@ <style> .footer { font-size:small; color:#666;} </style> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{.Subject}}</title> </head> diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index 64dbb3df68..422a4f0461 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{.Subject}}</title> <style> diff --git a/templates/mail/notify/collaborator.tmpl b/templates/mail/notify/collaborator.tmpl index fcae84733e..9810c70984 100644 --- a/templates/mail/notify/collaborator.tmpl +++ b/templates/mail/notify/collaborator.tmpl @@ -4,7 +4,7 @@ <style> .footer { font-size:small; color:#666;} </style> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{.Subject}}</title> </head> diff --git a/templates/mail/notify/repo_transfer.tmpl b/templates/mail/notify/repo_transfer.tmpl index 85ed96f3f7..586f83e652 100644 --- a/templates/mail/notify/repo_transfer.tmpl +++ b/templates/mail/notify/repo_transfer.tmpl @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{.Subject}}</title> </head> diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl index b2acdce8b2..f588d8224f 100644 --- a/templates/mail/release.tmpl +++ b/templates/mail/release.tmpl @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>{{.Subject}}</title> <style> diff --git a/templates/mail/team_invite.tmpl b/templates/mail/team_invite.tmpl index 163c950e94..8357895265 100644 --- a/templates/mail/team_invite.tmpl +++ b/templates/mail/team_invite.tmpl @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"/> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> </head> {{$invite_url := printf "%sorg/invite/%s" AppUrl (QueryEscape .Invite.Token)}} <body> diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index 26321f6208..f734a39a93 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -19,15 +19,15 @@ <span class="inline required field"><label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label></span> <div class="inline-grouped-list"> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.public"}}</label> </div> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.limited"}}</label> </div> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.private"}}</label> </div> </div> @@ -37,7 +37,7 @@ <label>{{.locale.Tr "org.settings.permission"}}</label> <div class="inline-grouped-list"> <div class="ui checkbox"> - <input type="checkbox" name="repo_admin_change_team_access" checked/> + <input type="checkbox" name="repo_admin_change_team_access" checked> <label>{{.locale.Tr "org.settings.repoadminchangeteam"}}</label> </div> </div> diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index c1623db4d7..833b97e347 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -41,19 +41,19 @@ <label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label> <div class="field"> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.public"}}</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.limited"}}</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> - <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}> <label>{{.locale.Tr "org.settings.visibility.private"}}</label> </div> </div> @@ -63,7 +63,7 @@ <label>{{.locale.Tr "org.settings.permission"}}</label> <div class="field"> <div class="ui checkbox"> - <input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}/> + <input type="checkbox" name="repo_admin_change_team_access" {{if .RepoAdminChangeTeamAccess}}checked{{end}}> <label>{{.locale.Tr "org.settings.repoadminchangeteam"}}</label> </div> </div> diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 6ea1614753..5b10facfd7 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -52,7 +52,7 @@ <div class="item"> <form action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove_invite" method="post"> {{$.CsrfTokenHtml}} - <input type="hidden" name="iid" value="{{.ID}}" /> + <input type="hidden" name="iid" value="{{.ID}}"> <button class="ui red button right">{{$.locale.Tr "org.members.remove"}}</button> </form> {{.Email}} diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 507173e51f..cecd8ddee6 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -11,7 +11,7 @@ {{else if .IsOrganizationOwner}} <form method="post" action="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/action/join"> {{$.CsrfTokenHtml}} - <input type="hidden" name="page" value="team"/> + <input type="hidden" name="page" value="team"> <button type="submit" class="ui primary tiny button" name="uid" value="{{$.SignedUser.ID}}">{{$.locale.Tr "org.teams.join"}}</button> </form> {{end}} diff --git a/templates/post-install.tmpl b/templates/post-install.tmpl index f237a6e01b..7f74a4d0d2 100644 --- a/templates/post-install.tmpl +++ b/templates/post-install.tmpl @@ -7,7 +7,7 @@ <div class="ui stackable middle very relaxed page grid"> <div id="repo_migrating" class="sixteen wide center aligned centered column"> <div> - <img src="{{AssetUrlPrefix}}/img/loading.png"/> + <img src="{{AssetUrlPrefix}}/img/loading.png"> </div> </div> </div> diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index c50aa5eae8..8d72cd1420 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -73,7 +73,7 @@ <form method="GET" action="{{$.RepoLink}}/_cherrypick/{{.CommitID}}/{{if $.BranchName}}{{PathEscapeSegments $.BranchName}}{{else}}{{PathEscapeSegments $.Repository.DefaultBranch}}{{end}}" id="branch-dropdown-form"> <input type="hidden" name="ref" value="{{if $.BranchName}}{{$.BranchName}}{{else}}{{$.Repository.DefaultBranch}}{{end}}"> <input type="hidden" name="refType" value="branch"> - <input type="hidden" id="cherry-pick-type" name="cherry-pick-type"><br/> + <input type="hidden" id="cherry-pick-type" name="cherry-pick-type"><br> <button type="submit" id="cherry-pick-submit" class="ui green button"></button> </form> </div> diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 27e3a74c1b..721caec23f 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -118,7 +118,7 @@ <div class="menu"> <div class="item" data-value="">{{.locale.Tr "repo.issue_labels_helper"}}</div> {{range $template, $labels := .LabelTemplates}} - <div class="item" data-value="{{$template}}">{{$template}}<br/><i>({{$labels}})</i></div> + <div class="item" data-value="{{$template}}">{{$template}}<br><i>({{$labels}})</i></div> {{end}} </div> </div> @@ -210,7 +210,7 @@ </div> </div> - <br/> + <br> <div class="inline field"> <label></label> <button class="ui green button{{if not .CanCreateRepo}} disabled{{end}}"> diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index deea6baffb..507e4828a7 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -2,7 +2,7 @@ <form class="ui form {{if $.hidden}}gt-hidden comment-form{{end}}" action="{{$.root.Issue.Link}}/files/reviews/comments" method="post"> {{$.root.CsrfTokenHtml}} <input type="hidden" name="origin" value="{{if $.root.PageIsPullFiles}}diff{{else}}timeline{{end}}"> - <input type="hidden" name="latest_commit_id" value="{{$.root.AfterCommitID}}"/> + <input type="hidden" name="latest_commit_id" value="{{$.root.AfterCommitID}}"> <input type="hidden" name="side" value="{{if $.Side}}{{$.Side}}{{end}}"> <input type="hidden" name="line" value="{{if $.Line}}{{$.Line}}{{end}}"> <input type="hidden" name="path" value="{{if $.File}}{{$.File}}{{end}}"> diff --git a/templates/repo/diff/image_diff.tmpl b/templates/repo/diff/image_diff.tmpl index 2d4a731758..fba02ad78f 100644 --- a/templates/repo/diff/image_diff.tmpl +++ b/templates/repo/diff/image_diff.tmpl @@ -17,7 +17,7 @@ {{if .blobBase}} <span class="side"> <p class="side-header">{{.root.locale.Tr "repo.diff.file_before"}}</p> - <span class="before-container"><img class="image-before" /></span> + <span class="before-container"><img class="image-before"></span> <p> <span class="bounds-info-before"> {{.root.locale.Tr "repo.diff.file_image_width"}}: <span class="text bounds-info-width"></span> @@ -32,7 +32,7 @@ {{if .blobHead}} <span class="side"> <p class="side-header">{{.root.locale.Tr "repo.diff.file_after"}}</p> - <span class="after-container"><img class="image-after" /></span> + <span class="after-container"><img class="image-after"></span> <p> <span class="bounds-info-after"> {{.root.locale.Tr "repo.diff.file_image_width"}}: <span class="text bounds-info-width"></span> @@ -50,9 +50,9 @@ <div class="ui bottom attached tab image-diff-container" data-tab="diff-swipe-{{.file.Index}}"> <div class="diff-swipe"> <div class="swipe-frame"> - <span class="before-container"><img class="image-before" /></span> + <span class="before-container"><img class="image-before"></span> <span class="swipe-container"> - <span class="after-container"><img class="image-after" /></span> + <span class="after-container"><img class="image-after"></span> </span> <span class="swipe-bar"> <span class="handle top-handle"></span> @@ -65,10 +65,10 @@ <div class="diff-overlay"> <div class="overlay-frame"> <div class="ui centered"> - <input type="range" min="0" max="100" value="50" /> + <input type="range" min="0" max="100" value="50"> </div> - <span class="before-container"><img class="image-before"/></span> - <span class="after-container"><img class="image-after" /></span> + <span class="before-container"><img class="image-before"></span> + <span class="after-container"><img class="image-after"></span> </div> </div> </div> diff --git a/templates/repo/diff/new_review.tmpl b/templates/repo/diff/new_review.tmpl index 6ec1835515..9d2208e289 100644 --- a/templates/repo/diff/new_review.tmpl +++ b/templates/repo/diff/new_review.tmpl @@ -8,7 +8,7 @@ <div class="ui segment"> <form class="ui form" action="{{.Link}}/reviews/submit" method="post"> {{.CsrfTokenHtml}} - <input type="hidden" name="commit_id" value="{{.AfterCommitID}}"/> + <input type="hidden" name="commit_id" value="{{.AfterCommitID}}"> <div class="header gt-df gt-ac gt-pb-3"> <div class="gt-f1">{{$.locale.Tr "repo.diff.review.header"}}</div> <a class="muted close gt-px-3">{{svg "octicon-x" 16}}</a> diff --git a/templates/repo/graph/svgcontainer.tmpl b/templates/repo/graph/svgcontainer.tmpl index 6e6046cecc..12c2cb4eb9 100644 --- a/templates/repo/graph/svgcontainer.tmpl +++ b/templates/repo/graph/svgcontainer.tmpl @@ -14,9 +14,9 @@ {{- else if eq $glyph.Glyph '_' -}} M {{Add (Mul $glyph.Column 5) 0}} {{Add (Mul $glyph.Row 12) 12}} h 10 {{/* */ -}} {{- end -}} - {{- end}}" stroke-width="1" fill="none" id="flow-{{$flow.ID}}-path" stroke-linecap="round"/> + {{- end}}" stroke-width="1" fill="none" id="flow-{{$flow.ID}}-path" stroke-linecap="round"> {{range $flow.Commits}} - <circle class="flow-commit" cx="{{Add (Mul .Column 5) 5}}" cy="{{Add (Mul .Row 12) 6}}" r="2.5" stroke="none" id="flow-commit-{{.Rev}}" data-rev="{{.Rev}}"/> + <circle class="flow-commit" cx="{{Add (Mul .Column 5) 5}}" cy="{{Add (Mul .Row 12) 6}}" r="2.5" stroke="none" id="flow-commit-{{.Rev}}" data-rev="{{.Rev}}"> {{end}} </g> {{end}} diff --git a/templates/repo/issue/choose.tmpl b/templates/repo/issue/choose.tmpl index 192754f5f7..688e98bfc6 100644 --- a/templates/repo/issue/choose.tmpl +++ b/templates/repo/issue/choose.tmpl @@ -12,7 +12,7 @@ <div class="ui two column grid"> <div class="column left aligned"> <strong>{{.Name | RenderEmojiPlain}}</strong> - <br/>{{.About | RenderEmojiPlain}} + <br>{{.About | RenderEmojiPlain}} </div> <div class="column right aligned"> <a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr "repo.issues.choose.get_started"}}</a> @@ -24,7 +24,7 @@ <div class="ui two column grid"> <div class="column left aligned"> <strong>{{.locale.Tr "repo.issues.choose.blank"}}</strong> - <br/>{{.locale.Tr "repo.issues.choose.blank_about"}} + <br>{{.locale.Tr "repo.issues.choose.blank_about"}} </div> <div class="column right aligned"> <a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr "repo.issues.choose.get_started"}}</a> diff --git a/templates/repo/issue/labels/edit_delete_label.tmpl b/templates/repo/issue/labels/edit_delete_label.tmpl index 38a948172f..568195880d 100644 --- a/templates/repo/issue/labels/edit_delete_label.tmpl +++ b/templates/repo/issue/labels/edit_delete_label.tmpl @@ -28,7 +28,7 @@ <input class="label-exclusive-input" name="exclusive" type="checkbox"> <label>{{.locale.Tr "repo.issues.label_exclusive"}}</label> </div> - <br/> + <br> <small class="desc">{{.locale.Tr "repo.issues.label_exclusive_desc" | Safe}}</small> <div class="desc gt-ml-2 gt-mt-3 gt-hidden label-exclusive-warning"> {{svg "octicon-alert"}} {{.locale.Tr "repo.issues.label_exclusive_warning" | Safe}} diff --git a/templates/repo/issue/labels/label_load_template.tmpl b/templates/repo/issue/labels/label_load_template.tmpl index 010b691638..21caf2b472 100644 --- a/templates/repo/issue/labels/label_load_template.tmpl +++ b/templates/repo/issue/labels/label_load_template.tmpl @@ -2,7 +2,7 @@ <div class="twelve wide computer column"> <div class="ui attached left aligned segment"> <p>{{.locale.Tr "repo.issues.label_templates.info"}}</p> - <br/> + <br> <form class="ui form center" action="{{.Link}}/initialize" method="post"> {{.CsrfTokenHtml}} <div class="field"> @@ -11,7 +11,7 @@ <div class="default text">{{.locale.Tr "repo.issues.label_templates.helper"}}</div> <div class="menu"> {{range $template, $labels := .LabelTemplates}} - <div class="item" data-value="{{$template}}">{{$template}}<br/><i>({{$labels}})</i></div> + <div class="item" data-value="{{$template}}">{{$template}}<br><i>({{$labels}})</i></div> {{end}} </div> {{svg "octicon-triangle-down" 18 "dropdown icon"}} diff --git a/templates/repo/issue/labels/label_new.tmpl b/templates/repo/issue/labels/label_new.tmpl index c937f28e8a..0286f8f228 100644 --- a/templates/repo/issue/labels/label_new.tmpl +++ b/templates/repo/issue/labels/label_new.tmpl @@ -16,7 +16,7 @@ <input class="label-exclusive-input" name="exclusive" type="checkbox"> <label>{{.locale.Tr "repo.issues.label_exclusive"}}</label> </div> - <br/> + <br> <small class="desc">{{.locale.Tr "repo.issues.label_exclusive_desc" | Safe}}</small> </div> <div class="field"> diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 5797b358f7..0a113e2484 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -31,7 +31,7 @@ <div class="column center aligned"> <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="state" value="{{$.State}}"/> + <input type="hidden" name="state" value="{{$.State}}"> <input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/repo/issue/search.tmpl b/templates/repo/issue/search.tmpl index c4aa972c90..9a8a77bb87 100644 --- a/templates/repo/issue/search.tmpl +++ b/templates/repo/issue/search.tmpl @@ -1,12 +1,12 @@ <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="type" value="{{$.ViewType}}"/> - <input type="hidden" name="state" value="{{$.State}}"/> - <input type="hidden" name="labels" value="{{.SelectLabels}}"/> - <input type="hidden" name="milestone" value="{{$.MilestoneID}}"/> - <input type="hidden" name="project" value="{{$.ProjectID}}"/> - <input type="hidden" name="assignee" value="{{$.AssigneeID}}"/> - <input type="hidden" name="poster" value="{{$.PosterID}}"/> + <input type="hidden" name="type" value="{{$.ViewType}}"> + <input type="hidden" name="state" value="{{$.State}}"> + <input type="hidden" name="labels" value="{{.SelectLabels}}"> + <input type="hidden" name="milestone" value="{{$.MilestoneID}}"> + <input type="hidden" name="project" value="{{$.ProjectID}}"> + <input type="hidden" name="assignee" value="{{$.AssigneeID}}"> + <input type="hidden" name="poster" value="{{$.PosterID}}"> <input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 8a55d4e30e..99337c531f 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -12,7 +12,7 @@ <!-- Agree, there should be a better way, eg: introduce window.config.pageData (original author: wxiaoguang @ 2021-09-05) --> <input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> <input type="hidden" id="repoId" value="{{.Repository.ID}}"> - <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> + <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"> <input type="hidden" id="type" value="{{.IssueType}}"> {{$createdStr:= TimeSinceUnix .Issue.CreatedUnix $.locale}} diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 37a565cbc8..0deb0a1891 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -294,7 +294,7 @@ <span class="text"><strong>{{.locale.Tr "notification.notifications"}}</strong></span> <div class="gt-mt-3"> <form method="POST" action="{{.Issue.Link}}/watch"> - <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}" /> + <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}"> {{$.CsrfTokenHtml}} <button class="fluid ui button gt-df gt-jc"> {{if $.IssueWatch.IsWatching}} @@ -517,8 +517,8 @@ <div class="content"> <form method="POST" action="{{.Issue.Link}}/dependency/delete" id="removeDependencyForm"> {{$.CsrfTokenHtml}} - <input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"/> - <input type="hidden" value="" name="dependencyType" id="dependencyType"/> + <input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"> + <input type="hidden" value="" name="dependencyType" id="dependencyType"> </form> <p>{{if .Issue.IsPull}} {{.locale.Tr "repo.issues.dependency.pr_remove_text"}} diff --git a/templates/repo/migrate/migrating.tmpl b/templates/repo/migrate/migrating.tmpl index cd3c5e754e..51caa28aa1 100644 --- a/templates/repo/migrate/migrating.tmpl +++ b/templates/repo/migrate/migrating.tmpl @@ -9,12 +9,12 @@ <div class="ui stackable middle very relaxed page grid"> <div id="repo_migrating" class="sixteen wide center aligned centered column" task="{{.MigrateTask.ID}}"> <div> - <img src="{{AssetUrlPrefix}}/img/loading.png"/> + <img src="{{AssetUrlPrefix}}/img/loading.png"> </div> </div> <div id="repo_migrating_failed_image" class="sixteen wide center aligned centered column gt-hidden"> <div> - <img src="{{AssetUrlPrefix}}/img/failed.png"/> + <img src="{{AssetUrlPrefix}}/img/failed.png"> </div> </div> </div> diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index b5cd1dc218..acbd0241d4 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -182,7 +182,7 @@ {{if eq $.Project.CardType 1}}{{/* Images and Text*/}} <div class="card-attachment-images"> {{range (index $.issuesAttachmentMap .ID)}} - <img src="{{.DownloadURL}}" alt="{{.Name}}" /> + <img src="{{.DownloadURL}}" alt="{{.Name}}"> {{end}} </div> {{end}} diff --git a/templates/repo/pulls/files.tmpl b/templates/repo/pulls/files.tmpl index c3e32325d8..1e02dfa397 100644 --- a/templates/repo/pulls/files.tmpl +++ b/templates/repo/pulls/files.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} <input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> -<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> +<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"> <div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull files diff"> {{template "repo/header" .}} diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 0bd69995b6..1cd37d2dd3 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -20,11 +20,11 @@ <b>{{.tag_name}}</b><span class="at">@</span><strong>{{.tag_target}}</strong> {{else}} <input id="tag-name" name="tag_name" value="{{.tag_name}}" placeholder="{{.locale.Tr "repo.release.tag_name"}}" autofocus required maxlength="255"> - <input id="tag-name-editor" type="hidden" data-existing-tags={{Json .Tags}} data-tag-helper={{.locale.Tr "repo.release.tag_helper"}} data-tag-helper-new={{.locale.Tr "repo.release.tag_helper_new"}} data-tag-helper-existing={{.locale.Tr "repo.release.tag_helper_existing"}} /> + <input id="tag-name-editor" type="hidden" data-existing-tags={{Json .Tags}} data-tag-helper={{.locale.Tr "repo.release.tag_helper"}} data-tag-helper-new={{.locale.Tr "repo.release.tag_helper_new"}} data-tag-helper-existing={{.locale.Tr "repo.release.tag_helper_existing"}}> <div id="tag-target-selector" class="gt-dib"> <span class="at">@</span> <div class="ui selection dropdown"> - <input type="hidden" name="tag_target" value="{{.tag_target}}"/> + <input type="hidden" name="tag_target" value="{{.tag_target}}"> {{svg "octicon-git-branch"}} <div class="text"> {{.locale.Tr "repo.release.target"}} : @@ -70,8 +70,8 @@ </a> </div> <div class="gt-df gt-ac"> - <input name="attachment-edit-{{.UUID}}" class="gt-mr-3 attachment_edit" required value="{{.Name}}"/> - <input name="attachment-del-{{.UUID}}" type="hidden" value="false"/> + <input name="attachment-edit-{{.UUID}}" class="gt-mr-3 attachment_edit" required value="{{.Name}}"> + <input name="attachment-del-{{.UUID}}" type="hidden" value="false"> <span class="ui text grey gt-mr-3">{{.Size | FileSize}}</span> <span data-tooltip-content="{{$.locale.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}"> {{svg "octicon-info"}} diff --git a/templates/repo/settings/lfs_pointers.tmpl b/templates/repo/settings/lfs_pointers.tmpl index db7ee77985..c95e07b482 100644 --- a/templates/repo/settings/lfs_pointers.tmpl +++ b/templates/repo/settings/lfs_pointers.tmpl @@ -12,7 +12,7 @@ {{.CsrfTokenHtml}} {{range .Pointers}} {{if .Associatable}} - <input type="hidden" name="oid" value="{{.Oid}} {{.Size}}"/> + <input type="hidden" name="oid" value="{{.Oid}} {{.Size}}"> {{end}} {{end}} <button class="ui green button">{{$.locale.Tr "repo.settings.lfs_pointers.associateAccessible" $.NumAssociatable}}</button> diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index b432fadfe5..023be5cee4 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -281,7 +281,7 @@ {{else}} <div class="ui radio checkbox"> {{end}} - <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}checked{{end}}> <label>{{.locale.Tr "repo.settings.use_internal_wiki"}}</label> </div> </div> @@ -291,7 +291,7 @@ {{else}} <div class="ui radio checkbox"> {{end}} - <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalWiki}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalWiki}}checked{{end}}> <label>{{.locale.Tr "repo.settings.use_external_wiki"}}</label> </div> </div> @@ -323,7 +323,7 @@ {{else}} <div class="ui radio checkbox"> {{end}} - <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}checked{{end}}> <label>{{.locale.Tr "repo.settings.use_internal_issue_tracker"}}</label> </div> </div> @@ -359,7 +359,7 @@ {{else}} <div class="ui radio checkbox"> {{end}} - <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalTracker}}checked{{end}}/> + <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalTracker}}checked{{end}}> <label>{{.locale.Tr "repo.settings.use_external_issue_tracker"}}</label> </div> </div> diff --git a/templates/repo/settings/tags.tmpl b/templates/repo/settings/tags.tmpl index aa23c6a57d..0ebaff6fd2 100644 --- a/templates/repo/settings/tags.tmpl +++ b/templates/repo/settings/tags.tmpl @@ -112,7 +112,7 @@ <a class="ui tiny primary button" href="{{$.RepoLink}}/settings/tags/{{.ID}}">{{$.locale.Tr "edit"}}</a> <form class="gt-dib" action="{{$.RepoLink}}/settings/tags/delete" method="post"> {{$.CsrfTokenHtml}} - <input type="hidden" name="id" value="{{.ID}}" /> + <input type="hidden" name="id" value="{{.ID}}"> <button class="ui tiny red button">{{$.locale.Tr "remove"}}</button> </form> </td> diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index c561e0ad8e..89fb01fb20 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -2,7 +2,7 @@ <div role="main" aria-label="{{.Title}}" class="page-content ui container center gt-full-screen-width {{if .IsRepo}}repository{{end}}"> {{if .IsRepo}}{{template "repo/header" .}}{{end}} <div class="ui container center"> - <p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/404.png" alt="404"/></p> + <p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/404.png" alt="404"></p> <div class="ui divider"></div> <br> <p>{{.locale.Tr "error404" | Safe}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 8c4f27834a..50f19ec664 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -1,6 +1,6 @@ {{template "base/head" .}} <div role="main" aria-label="{{.Title}}" class="page-content ui container gt-full-screen-width center"> - <p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/500.png" alt="500"/></p> + <p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/500.png" alt="500"></p> <div class="ui divider"></div> <br> {{if .ErrorMsg}} diff --git a/templates/user/auth/grant.tmpl b/templates/user/auth/grant.tmpl index 060b675273..28c5740be0 100644 --- a/templates/user/auth/grant.tmpl +++ b/templates/user/auth/grant.tmpl @@ -8,7 +8,7 @@ <div class="ui attached segment"> {{template "base/alert" .}} <p> - <b>{{.locale.Tr "auth.authorize_application_description"}}</b><br/> + <b>{{.locale.Tr "auth.authorize_application_description"}}</b><br> {{.locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML | Str2html}} </p> </div> diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index ef153c38ab..766a6bf7d8 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -76,10 +76,10 @@ <div class="column center aligned"> <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="type" value="{{$.ViewType}}"/> - <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}}%2C{{end}}]"/> - <input type="hidden" name="sort" value="{{$.SortType}}"/> - <input type="hidden" name="state" value="{{$.State}}"/> + <input type="hidden" name="type" value="{{$.ViewType}}"> + <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}}%2C{{end}}]"> + <input type="hidden" name="sort" value="{{$.SortType}}"> + <input type="hidden" name="state" value="{{$.State}}"> <input name="q" value="{{$.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 5c65512907..c20ea9d041 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -50,10 +50,10 @@ <div class="column center aligned"> <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="type" value="{{$.ViewType}}"/> - <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]"/> - <input type="hidden" name="sort" value="{{$.SortType}}"/> - <input type="hidden" name="state" value="{{$.State}}"/> + <input type="hidden" name="type" value="{{$.ViewType}}"> + <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]"> + <input type="hidden" name="sort" value="{{$.SortType}}"> + <input type="hidden" name="state" value="{{$.State}}"> <input name="q" value="{{$.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index 101e4d24e4..1ea34fe2a6 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -74,8 +74,8 @@ {{if ne .Status 3}} <form action="{{AppSubUrl}}/notifications/status" method="POST"> {{$.CsrfTokenHtml}} - <input type="hidden" name="notification_id" value="{{.ID}}" /> - <input type="hidden" name="status" value="pinned" /> + <input type="hidden" name="notification_id" value="{{.ID}}"> + <input type="hidden" name="status" value="pinned"> <button class="ui mini button" title='{{$.locale.Tr "notification.pin"}}' data-url="{{AppSubUrl}}/notifications/status" data-status="pinned" @@ -91,9 +91,9 @@ {{if or (eq .Status 1) (eq .Status 3)}} <form action="{{AppSubUrl}}/notifications/status" method="POST"> {{$.CsrfTokenHtml}} - <input type="hidden" name="notification_id" value="{{.ID}}" /> - <input type="hidden" name="status" value="read" /> - <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}" /> + <input type="hidden" name="notification_id" value="{{.ID}}"> + <input type="hidden" name="status" value="read"> + <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}"> <button class="ui mini button" title='{{$.locale.Tr "notification.mark_as_read"}}' data-url="{{AppSubUrl}}/notifications/status" data-status="read" @@ -106,9 +106,9 @@ {{else if eq .Status 2}} <form action="{{AppSubUrl}}/notifications/status" method="POST"> {{$.CsrfTokenHtml}} - <input type="hidden" name="notification_id" value="{{.ID}}" /> - <input type="hidden" name="status" value="unread" /> - <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}" /> + <input type="hidden" name="notification_id" value="{{.ID}}"> + <input type="hidden" name="status" value="unread"> + <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}"> <button class="ui mini button" title='{{$.locale.Tr "notification.mark_as_unread"}}' data-url="{{AppSubUrl}}/notifications/status" data-status="unread" diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index b26b934366..d4a0f4a3ac 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -4,7 +4,7 @@ <div class="ui stackable grid"> <div class="ui five wide column"> <div class="ui card"> - <div id="profile-avatar" class="content gt-df"/> + <div id="profile-avatar" class="content gt-df"> {{if eq .SignedUserName .Owner.Name}} <a class="image" href="{{AppSubUrl}}/user/settings" data-tooltip-content="{{.locale.Tr "user.change_avatar"}}"> {{avatar $.Context .Owner 290}} diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 6cd330241a..e64f4c7efa 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -110,7 +110,7 @@ </div> <div class="field {{if .Err_Gravatar}}error{{end}}"> <label for="gravatar">Avatar {{.locale.Tr "email"}}</label> - <input id="gravatar" name="gravatar" value="{{.SignedUser.AvatarEmail}}" /> + <input id="gravatar" name="gravatar" value="{{.SignedUser.AvatarEmail}}"> </div> {{end}} |