mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 12:53:43 +01:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									21f25799b4
								
							
						
					
					
						commit
						699c71d319
					
				@ -160,7 +160,13 @@ func (i *Issue) State() string {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (issue *Issue) FullLink() string {
 | 
			
		||||
	return fmt.Sprintf("%s/issues/%d", issue.Repo.FullLink(), issue.Index)
 | 
			
		||||
	var path string
 | 
			
		||||
	if issue.IsPull {
 | 
			
		||||
		path = "pulls"
 | 
			
		||||
	} else {
 | 
			
		||||
		path = "issues"
 | 
			
		||||
	}
 | 
			
		||||
	return fmt.Sprintf("%s/%s/%d", issue.Repo.FullLink(), path, issue.Index)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsPoster returns true if given user by ID is the poster.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user