mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Step one for a GitHub like commit status check ui:    Step two:   The design now will list all commit status checks which takes too much space. This is a pre-improve for #26247 --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			491 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			491 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
{{if .Statuses}}
 | 
						|
	{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
 | 
						|
		<a class="gt-vm gt-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
 | 
						|
			{{template "repo/commit_status" .Status}}
 | 
						|
		</a>
 | 
						|
	{{else}}
 | 
						|
		<span class="gt-vm" data-tippy="commit-statuses" tabindex="0">
 | 
						|
			{{template "repo/commit_status" .Status}}
 | 
						|
		</span>
 | 
						|
	{{end}}
 | 
						|
	<div class="tippy-target">
 | 
						|
		{{template "repo/pulls/status" (dict "CommitStatuses" .Statuses "CommitStatus" .Status)}}
 | 
						|
	</div>
 | 
						|
{{end}}
 |