mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Display commit status on landing page of repo (#1784)
* Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							a89692d158
						
					
				
				
					commit
					be3319b3d5
				
			
							
								
								
									
										15
									
								
								templates/repo/commit_status.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								templates/repo/commit_status.tmpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
{{if eq .State "pending"}}
 | 
			
		||||
    <a href="{{.TargetURL}}" target=_blank><i class="commit-status circle icon yellow"></i></a>
 | 
			
		||||
{{end}}
 | 
			
		||||
{{if eq .State "success"}}
 | 
			
		||||
    <a href="{{.TargetURL}}" target=_blank><i class="commit-status check icon green"></i></a>
 | 
			
		||||
{{end}}
 | 
			
		||||
{{if eq .State "error"}}
 | 
			
		||||
    <a href="{{.TargetURL}}" target=_blank><i class="commit-status warning icon red"></i></a>
 | 
			
		||||
{{end}}
 | 
			
		||||
{{if eq .State "failure"}}
 | 
			
		||||
    <a href="{{.TargetURL}}" target=_blank><i class="commit-status remove icon red"></i></a>
 | 
			
		||||
{{end}}
 | 
			
		||||
{{if eq .State "warning"}}
 | 
			
		||||
    <a href="{{.TargetURL}}" target=_blank><i class="commit-status warning sign icon yellow"></i></a>
 | 
			
		||||
{{end}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user