Improve interface when comparing a branch which has created a pull request (#17911)
* Improve interface when comparing a branch which has created a pull request * Take the note back
This commit is contained in:
parent
7cc44491fa
commit
d7770539f6
4 changed files with 30 additions and 2 deletions
|
@ -735,6 +735,10 @@ func CompareDiff(ctx *context.Context) {
|
|||
}
|
||||
} else {
|
||||
ctx.Data["HasPullRequest"] = true
|
||||
if err := pr.LoadIssue(); err != nil {
|
||||
ctx.ServerError("LoadIssue", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["PullRequest"] = pr
|
||||
ctx.HTML(http.StatusOK, tplCompareDiff)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue