mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix of template error in "/:owner/:repo/pulls" (#3343)
If anonymous (not signed in user) requests page "/:owner/:repo/pulls" he gets an error: template: repo/issue/list:11:105: executing "repo/issue/list" at <.PullRequestCtx.Base...>: nil pointer evaluating *models.Repository.Link This commit fixes that. Signed-off-by: Dmitry Yu Okunev <dyokunev@ut.mephi.ru>
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
				
			|||||||
				{{if .PageIsIssueList}}
 | 
									{{if .PageIsIssueList}}
 | 
				
			||||||
					<a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
 | 
										<a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
 | 
				
			||||||
				{{else}}
 | 
									{{else}}
 | 
				
			||||||
					<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>
 | 
										<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{if not .PullRequestCtx.Allowed}}#{{else}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.Repository.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}{{end}}">{{.i18n.Tr "repo.pulls.new"}}</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user