Skip to content

Commit cb8900a

Browse files
zeripathYohann Delafollye
authored and
Yohann Delafollye
committed
Remove errant third curly brackets from account.tmpl and pull.tmpl and send account ID in account.tmpl (go-gitea#11129)
* Remove errant third } from account.tmpl Fix go-gitea#11128 Signed-off-by: Andrew Thornton <[email protected]> * Remove errant third curly bracket from pull.tmpl Signed-off-by: Andrew Thornton <[email protected]> * Update templates/user/settings/account.tmpl
1 parent 0e3024d commit cb8900a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/issue/view_content/pull.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{{- else if .IsBlockedByOutdatedBranch}}red
7070
{{- else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsFailure .RequiredStatusCheckState.IsError)}}red
7171
{{- else if and .EnableStatusCheck (or (not $.LatestCommitStatus) .RequiredStatusCheckState.IsPending .RequiredStatusCheckState.IsWarning)}}yellow
72-
{{- else if and .RequireSigned (not .WillSign)}}}red
72+
{{- else if and .RequireSigned (not .WillSign)}}red
7373
{{- else if .Issue.PullRequest.IsChecking}}yellow
7474
{{- else if .Issue.PullRequest.CanAutoMerge}}green
7575
{{- else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a>

templates/user/settings/account.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<form action="{{AppSubUrl}}/user/settings/account/email" method="post">
9393
{{$.CsrfTokenHtml}}
9494
<input name="_method" type="hidden" value="SENDACTIVATION">
95-
<input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}}.ID{{end}}">
95+
<input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}{{.ID}}{{end}}">
9696
{{if $.ActivationsPending}}
9797
<button disabled class="ui blue tiny button">{{$.i18n.Tr "settings.activations_pending"}}</button>
9898
{{else}}

0 commit comments

Comments
 (0)