diff --git a/styles/templates/repo/commit_sign_badge.ts b/styles/templates/repo/commit_sign_badge.ts index e1b4046..9cd1743 100644 --- a/styles/templates/repo/commit_sign_badge.ts +++ b/styles/templates/repo/commit_sign_badge.ts @@ -32,4 +32,10 @@ export const commitSignBadge = css` } } } + .ui.label.commit-sign-badge.github-theme-commit-sign-badge { + font-family: + -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", + "Segoe UI Emoji"; + font-weight: 500; + } `; diff --git a/templates/repo/commit_sign_badge.tmpl b/templates/repo/commit_sign_badge.tmpl index 7723b28..d029827 100644 --- a/templates/repo/commit_sign_badge.tmpl +++ b/templates/repo/commit_sign_badge.tmpl @@ -59,17 +59,17 @@ so this template should be kept as small as possible, DO NOT put large component {{- end -}} {{- if or (not $commit) $extraClass}}{{/* only show the lock icon if there is no commit info (icon only) or the commit is really signed */}} - + {{- if $verified -}} {{- if and $signingUser $signingUser.ID -}} - {{svg "gitea-lock"}} + Verified {{ctx.AvatarUtils.Avatar $signingUser 16}} {{- else -}} - {{svg "gitea-lock-cog"}} + Partially verified {{ctx.AvatarUtils.AvatarByEmail $signingEmail "" 16}} {{- end -}} {{- else -}} - {{svg "gitea-unlock"}} + Unverified {{- end -}} {{- end -}}