diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index dd2646b50a..7aeaa2537c 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -12,7 +12,7 @@
{{.CsrfTokenHtml}}
diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl
index b8fd8c0ad1..9fdf0dce93 100644
--- a/templates/admin/user/new.tmpl
+++ b/templates/admin/user/new.tmpl
@@ -69,7 +69,7 @@
diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl
index fcb54c0a78..75a0b8564a 100644
--- a/templates/mail/auth/activate.tmpl
+++ b/templates/mail/auth/activate.tmpl
@@ -6,7 +6,7 @@
{{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}}
-{{ $activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
+{{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName | Str2html}}
{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives | Str2html}}
{{$activate_url}}
diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl
index e65ebd6b98..0a24dc19c8 100644
--- a/templates/mail/auth/activate_email.tmpl
+++ b/templates/mail/auth/activate_email.tmpl
@@ -6,7 +6,7 @@
{{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}}
-{{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
+{{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | Str2html}}
{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}
{{$activate_url}}
diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl
index a013ebd7a6..6a3625ab78 100644
--- a/templates/mail/auth/reset_passwd.tmpl
+++ b/templates/mail/auth/reset_passwd.tmpl
@@ -6,7 +6,7 @@
{{.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape)}}
-{{ $recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}}
+{{$recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}}
{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | Str2html}}
{{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives | Str2html}}
{{$recover_url}}
diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl
index b558dbe5ee..fceb080134 100644
--- a/templates/org/member/members.tmpl
+++ b/templates/org/member/members.tmpl
@@ -5,7 +5,7 @@
{{template "base/alert" .}}
- {{ range .Members}}
+ {{range .Members}}
{{avatar . 48}}
@@ -19,7 +19,7 @@
{{$.locale.Tr "org.members.membership_visibility"}}
- {{ $isPublic := index $.MembersIsPublicMember .ID}}
+ {{$isPublic := index $.MembersIsPublicMember .ID}}
{{if $isPublic}}
{{$.locale.Tr "org.members.public"}}
{{if or (eq $.SignedUser.ID .ID) $.IsOrganizationOwner}}(
{{$.locale.Tr "org.members.public_helper"}}){{end}}
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl
index b48f772f39..37c47cef33 100644
--- a/templates/package/shared/list.tmpl
+++ b/templates/package/shared/list.tmpl
@@ -50,7 +50,7 @@
{{svg "octicon-package" 32}}
{{.locale.Tr "packages.empty"}}
{{if and .Repository .CanWritePackages}}
- {{$packagesUrl := URLJoin .Owner.HTMLURL "-" "packages" }}
+ {{$packagesUrl := URLJoin .Owner.HTMLURL "-" "packages"}}
{{.locale.Tr "packages.empty.repo" $packagesUrl | Safe}}
{{end}}
{{.locale.Tr "packages.empty.documentation" | Safe}}
diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index c821d12d90..402435c467 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -3,12 +3,12 @@
{{if eq .GetType 4}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5) }}
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
{{svg "octicon-fold-down"}}
{{end}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4) }}
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}}
{{svg "octicon-fold-up"}}
@@ -47,12 +47,12 @@
|
{{if eq .GetType 4}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5) }}
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
{{svg "octicon-fold-down"}}
{{end}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4) }}
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}}
{{svg "octicon-fold-up"}}
diff --git a/templates/repo/diff/comment_form_datahandler.tmpl b/templates/repo/diff/comment_form_datahandler.tmpl
index 9656944719..d0e493488d 100644
--- a/templates/repo/diff/comment_form_datahandler.tmpl
+++ b/templates/repo/diff/comment_form_datahandler.tmpl
@@ -1,7 +1,7 @@
{{if $.comment}}
- {{ template "repo/diff/comment_form" dict "root" $.root "hidden" $.hidden "reply" $.reply "Line" $.comment.UnsignedLine "File" $.comment.TreePath "Side" $.comment.DiffSide "HasComments" true}}
+ {{template "repo/diff/comment_form" dict "root" $.root "hidden" $.hidden "reply" $.reply "Line" $.comment.UnsignedLine "File" $.comment.TreePath "Side" $.comment.DiffSide "HasComments" true}}
{{else if $.root}}
- {{ template "repo/diff/comment_form" $}}
+ {{template "repo/diff/comment_form" $}}
{{else}}
- {{ template "repo/diff/comment_form" dict "root" $}}
+ {{template "repo/diff/comment_form" dict "root" $}}
{{end}}
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl
index 9905f09baa..0cc7853378 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -1,8 +1,8 @@
{{range .comments}}
-{{ $createdStr:= TimeSinceUnix .CreatedUnix $.root.locale }}
+{{$createdStr:= TimeSinceUnix .CreatedUnix $.root.locale}}
{{if .IsNothingToCompare}}
- {{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived) }}
+ {{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived)}}
{{.locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}
|
{{.locale.Tr "repo.branch.delete_desc" | Str2html}}
diff --git a/templates/repo/issue/view_content/add_reaction.tmpl b/templates/repo/issue/view_content/add_reaction.tmpl index 1d0ddb62a9..9bd9022d28 100644 --- a/templates/repo/issue/view_content/add_reaction.tmpl +++ b/templates/repo/issue/view_content/add_reaction.tmpl @@ -1,10 +1,10 @@ {{if .ctx.IsSigned}} -