Browse Source

fix compare button on upstream repo leading to 404 (#5877)

tags/v1.9.0-dev
Lanre Adelowo techknowlogick 7 years ago
parent
commit
05185660cc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/repo/home.tmpl

+ 2
- 2
templates/repo/home.tmpl View File

@@ -59,8 +59,8 @@
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
{{if and .PullRequestCtx.Allowed .IsViewBranch}}
<div class="fitted item">
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}">
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository.Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}">
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
</a>
</div>
{{end}}


Loading…
Cancel
Save