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 54
54
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
55
55
{{if and .PullRequestCtx.Allowed .IsViewBranch}}
56
56
<div class="fitted item">
57
- <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}">
58
- <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
57
+ <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository. Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}">
58
+ <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
59
59
</a>
60
60
</div>
61
61
{{end}}
You can’t perform that action at this time.
0 commit comments