You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shabox_badge.tmpl 794B

123456789101112131415
  1. <div class="ui detail icon button">
  2. {{if .verification.Verified}}
  3. <div 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}}">
  4. {{if ne .verification.SigningUser.ID 0}}
  5. {{svg "gitea-lock"}}
  6. {{ctx.AvatarUtils.Avatar .verification.SigningUser 28 "signature"}}
  7. {{else}}
  8. <span title="{{ctx.Locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog"}}</span>
  9. {{ctx.AvatarUtils.AvatarByEmail .verification.SigningEmail "" 28 "signature"}}
  10. {{end}}
  11. </div>
  12. {{else}}
  13. <span title="{{ctx.Locale.Tr .verification.Reason}}">{{svg "gitea-unlock"}}</span>
  14. {{end}}
  15. </div>