 0dd605a8d3
			
		
	
	
	0dd605a8d3
	
	
	
		
			
			Co-authored-by: Beowulf <beowulf@beocode.eu> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7822 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu>
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			792 B
		
	
	
	
		
			Go HTML Template
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			792 B
		
	
	
	
		
			Go HTML Template
		
	
	
	
	
	
| <div class="signature">
 | |
| 	{{if .verification.Verified}}
 | |
| 		<span class="signature-author" title="{{if eq .verification.TrustStatus "trusted"}}{{else if eq .verification.TrustStatus "untrusted"}}{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.verification.Reason}}">
 | |
| 			{{if ne .verification.SigningUser.ID 0}}
 | |
| 				{{svg "gitea-lock"}}
 | |
| 				{{ctx.AvatarUtils.Avatar .verification.SigningUser 28}}
 | |
| 			{{else}}
 | |
| 				<span title="{{ctx.Locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog"}}</span>
 | |
| 				{{ctx.AvatarUtils.AvatarByEmail .verification.SigningEmail "" 28}}
 | |
| 			{{end}}
 | |
| 		</span>
 | |
| 	{{else}}
 | |
| 		<span title="{{ctx.Locale.Tr .verification.Reason}}">{{svg "gitea-unlock"}}</span>
 | |
| 	{{end}}
 | |
| </div>
 |