mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	Use yellow if an approved review is stale (#26312)
By using a different color it's clear that the review isn't pointing to the latest commit. **Screenshots:** Not stale review:  Stale review:  fixes #26306
This commit is contained in:
		
							parent
							
								
									d74c2228e3
								
							
						
					
					
						commit
						70647bd04c
					
				@ -192,6 +192,9 @@ func (r *Review) LoadAttributes(ctx context.Context) (err error) {
 | 
			
		||||
func (r *Review) HTMLTypeColorName() string {
 | 
			
		||||
	switch r.Type {
 | 
			
		||||
	case ReviewTypeApprove:
 | 
			
		||||
		if r.Stale {
 | 
			
		||||
			return "yellow"
 | 
			
		||||
		}
 | 
			
		||||
		return "green"
 | 
			
		||||
	case ReviewTypeComment:
 | 
			
		||||
		return "grey"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user