mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Commit Graph: Pull-Requests should not link to issues (#15734)
Use `/pulls` and simplify code.
This commit is contained in:
		@@ -33,14 +33,8 @@
 | 
				
			|||||||
						{{range $commit.Refs}}
 | 
											{{range $commit.Refs}}
 | 
				
			||||||
							{{$refGroup := .RefGroup}}
 | 
												{{$refGroup := .RefGroup}}
 | 
				
			||||||
							{{if eq $refGroup "pull"}}
 | 
												{{if eq $refGroup "pull"}}
 | 
				
			||||||
								{{if $.HidePRRefs}}
 | 
													{{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
 | 
				
			||||||
									{{if (containGeneric $.SelectedBranches .Name) }}
 | 
														<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
 | 
				
			||||||
										<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
 | 
					 | 
				
			||||||
											{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
 | 
					 | 
				
			||||||
										</a>
 | 
					 | 
				
			||||||
									{{end}}
 | 
					 | 
				
			||||||
								{{else}}
 | 
					 | 
				
			||||||
									<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
 | 
					 | 
				
			||||||
										{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
 | 
															{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
 | 
				
			||||||
									</a>
 | 
														</a>
 | 
				
			||||||
								{{end}}
 | 
													{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user