summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-23 19:55:53 +0800
committerUnknwon <u@gogs.io>2016-07-23 19:55:53 +0800
commit26d52ceb482888a4e7f323fb28978c93a2940146 (patch)
tree5cdf3d29e9d3eeaa3c58cf51f86d9646633ea574 /templates/repo
parentd90acacd86ffc8ea283b76e23c8cbc279108a9ef (diff)
downloadgitea-26d52ceb482888a4e7f323fb28978c93a2940146.tar.gz
gitea-26d52ceb482888a4e7f323fb28978c93a2940146.zip
#3186 fix wrong link for new pull request button of non-fork repository
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index ce8fd64047..6b3fc660b6 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -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>