summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-19 13:31:56 +0100
committerGitHub <noreply@github.com>2020-04-19 20:31:56 +0800
commit9588d2c6226c3d027bc5eca8cde7f85806dc3633 (patch)
tree063dcb86a7cce33a50bc3622d081b58963557178 /templates
parent23163e98a307300a6ba43e3d8c3b0d031398fef4 (diff)
downloadgitea-9588d2c6226c3d027bc5eca8cde7f85806dc3633.tar.gz
gitea-9588d2c6226c3d027bc5eca8cde7f85806dc3633.zip
Remove errant third curly brackets from account.tmpl and pull.tmpl and send account ID in account.tmpl (#11129)
* Remove errant third } from account.tmpl Fix #11128 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove errant third curly bracket from pull.tmpl Signed-off-by: Andrew Thornton <art27@cantab.net> * Update templates/user/settings/account.tmpl
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/pull.tmpl2
-rw-r--r--templates/user/settings/account.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index e66c2f6a9a..3aee0773f8 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -69,7 +69,7 @@
{{- else if .IsBlockedByOutdatedBranch}}red
{{- else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsFailure .RequiredStatusCheckState.IsError)}}red
{{- else if and .EnableStatusCheck (or (not $.LatestCommitStatus) .RequiredStatusCheckState.IsPending .RequiredStatusCheckState.IsWarning)}}yellow
- {{- else if and .RequireSigned (not .WillSign)}}}red
+ {{- else if and .RequireSigned (not .WillSign)}}red
{{- else if .Issue.PullRequest.IsChecking}}yellow
{{- else if .Issue.PullRequest.CanAutoMerge}}green
{{- else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a>
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl
index 67036f66f5..e8b4267a70 100644
--- a/templates/user/settings/account.tmpl
+++ b/templates/user/settings/account.tmpl
@@ -92,7 +92,7 @@
<form action="{{AppSubUrl}}/user/settings/account/email" method="post">
{{$.CsrfTokenHtml}}
<input name="_method" type="hidden" value="SENDACTIVATION">
- <input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}}.ID{{end}}">
+ <input name="id" type="hidden" value="{{if .IsPrimary}}PRIMARY{{else}}{{.ID}}{{end}}">
{{if $.ActivationsPending}}
<button disabled class="ui blue tiny button">{{$.i18n.Tr "settings.activations_pending"}}</button>
{{else}}