mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Do not show issue context popup on external issues (#17050)
The issues pop-up context cannot work for external issues - therefore do not show these. Fix #17047 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -830,7 +830,7 @@ func issueIndexPatternProcessor(ctx *RenderContext, node *html.Node) {
 | 
			
		||||
		reftext := node.Data[ref.RefLocation.Start:ref.RefLocation.End]
 | 
			
		||||
		if exttrack && !ref.IsPull {
 | 
			
		||||
			ctx.Metas["index"] = ref.Issue
 | 
			
		||||
			link = createLink(com.Expand(ctx.Metas["format"], ctx.Metas), reftext, "ref-issue")
 | 
			
		||||
			link = createLink(com.Expand(ctx.Metas["format"], ctx.Metas), reftext, "ref-issue ref-external-issue")
 | 
			
		||||
		} else {
 | 
			
		||||
			// Path determines the type of link that will be rendered. It's unknown at this point whether
 | 
			
		||||
			// the linked item is actually a PR or an issue. Luckily it's of no real consequence because
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user