File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1356,7 +1356,6 @@ func CompareAndPullRequestPost(ctx *context.Context) {
13561356 flashError , err := ctx .RenderToHTML (tplAlertDetails , map [string ]any {
13571357 "Message" : ctx .Tr ("repo.pulls.push_rejected" ),
13581358 "Summary" : ctx .Tr ("repo.pulls.new.blocked_user" ),
1359- "Details" : "" ,
13601359 })
13611360 if err != nil {
13621361 ctx .ServerError ("CompareAndPullRequest.HTMLString" , err )
@@ -1367,7 +1366,6 @@ func CompareAndPullRequestPost(ctx *context.Context) {
13671366 flashError , err := ctx .RenderToHTML (tplAlertDetails , map [string ]any {
13681367 "Message" : ctx .Tr ("repo.pulls.push_rejected" ),
13691368 "Summary" : ctx .Tr ("repo.pulls.new.must_collaborator" ),
1370- "Details" : "" ,
13711369 })
13721370 if err != nil {
13731371 ctx .ServerError ("CompareAndPullRequest.HTMLString" , err )
Original file line number Diff line number Diff line change 11{{.Message}}
2+ {{ if .Details }}
23<details>
34 <summary>{{.Summary}}</summary>
4- <code>
5- {{.Details | SanitizeHTML}}
6- </code>
5+ <code>{{.Details | SanitizeHTML}}</code>
76</details>
7+ {{ else }}
8+ <div>
9+ {{ .Summary }}
10+ </div>
11+ {{ end }}
You can’t perform that action at this time.
0 commit comments