diff options
author | silverwind <me@silverwind.io> | 2022-08-25 23:55:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 17:55:52 -0400 |
commit | 6c4688e1b1ddb68de192af7f83b06de27baae85e (patch) | |
tree | 554b4e7d97c843590031aab058ba1c66474c405f /templates/base | |
parent | 27ac65a124f34ec3ed5f34aeb576f918ae1c70b1 (diff) | |
download | gitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.tar.gz gitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.zip |
Add whitespace removal inside template curly brackes (#20853)
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/footer.tmpl | 2 | ||||
-rw-r--r-- | templates/base/head.tmpl | 4 | ||||
-rw-r--r-- | templates/base/head_script.tmpl | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 0e1b382d9d..3fa0f8e7ac 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -16,7 +16,7 @@ <!-- Third-party libraries --> {{if .EnableCaptcha}} {{if eq .CaptchaType "recaptcha"}} - <script src='{{ URLJoin .RecaptchaURL "api.js"}}' async></script> + <script src='{{URLJoin .RecaptchaURL "api.js"}}' async></script> {{end}} {{if eq .CaptchaType "hcaptcha"}} <script src='https://hcaptcha.com/1/api.js' async></script> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 233cf3e1d5..39749613de 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -65,8 +65,8 @@ <meta property="og:description" content="{{MetaDescription}}"> {{end}} <meta property="og:site_name" content="{{AppName}}"> -{{if .IsSigned }} - {{ if ne .SignedUser.Theme "gitea" }} +{{if .IsSigned}} + {{if ne .SignedUser.Theme "gitea"}} <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/theme-{{.SignedUser.Theme | PathEscape}}.css?v={{AssetVersion}}"> {{end}} {{else if ne DefaultTheme "gitea"}} diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl index a74923b55f..8369b63b35 100644 --- a/templates/base/head_script.tmpl +++ b/templates/base/head_script.tmpl @@ -21,18 +21,18 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly. enableTimeTracking: {{EnableTimetracking}}, {{if .RequireTribute}} tributeValues: Array.from(new Map([ - {{ range .Participants }} + {{range .Participants}} ['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.AvatarLink}}'}], - {{ end }} - {{ range .Assignees }} + {{end}} + {{range .Assignees}} ['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}', name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.AvatarLink}}'}], - {{ end }} - {{ range .MentionableTeams }} + {{end}} + {{range .MentionableTeams}} ['{{$.MentionableTeamsOrg}}/{{.Name}}', {key: '{{$.MentionableTeamsOrg}}/{{.Name}}', value: '{{$.MentionableTeamsOrg}}/{{.Name}}', name: '{{$.MentionableTeamsOrg}}/{{.Name}}', avatar: '{{$.MentionableTeamsOrgAvatar}}'}], - {{ end }} + {{end}} ]).values()), {{end}} mermaidMaxSourceCharacters: {{MermaidMaxSourceCharacters}}, |