Browse Source

#3186 fix wrong link for new pull request button of non-fork repository

tags/v1.2.0-rc1
Unknwon 9 years ago
parent
commit
c831d5a003
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/issue/list.tmpl

+ 1
- 1
templates/repo/issue/list.tmpl View File

@@ -8,7 +8,7 @@
{{if .PageIsIssueList}}
<a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
{{else}}
<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.Repository.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">{{.i18n.Tr "repo.pulls.new"}}</a>
<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.Repository.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">{{.i18n.Tr "repo.pulls.new"}}</a>
{{end}}
</div>
</div>


Loading…
Cancel
Save