File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 59
59
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
60
60
{{if and .PullRequestCtx.Allowed .IsViewBranch}}
61
61
<div class="fitted item">
62
- <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}">
63
- <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
62
+ <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository. Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}">
63
+ <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
64
64
</a>
65
65
</div>
66
66
{{end}}
You can’t perform that action at this time.
0 commit comments