Skip to content

Commit b3cc3ab

Browse files
committed
sign badge icon -> font
1 parent f2787ef commit b3cc3ab

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

styles/templates/repo/commit_sign_badge.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ export const commitSignBadge = css`
3232
}
3333
}
3434
}
35+
.ui.label.commit-sign-badge.github-theme-commit-sign-badge {
36+
font-family:
37+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji",
38+
"Segoe UI Emoji";
39+
font-weight: 500;
40+
}
3541
`;

templates/repo/commit_sign_badge.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ so this template should be kept as small as possible, DO NOT put large component
5959
<a {{if $commitBaseLink}}href="{{$commitBaseLink}}/{{$commit.ID}}"{{end}} class="ui label commit-id-short {{$extraClass}} github-theme-commit-sha" rel="nofollow">
6060
{{- end -}}
6161
{{- if or (not $commit) $extraClass}}{{/* only show the lock icon if there is no commit info (icon only) or the commit is really signed */}}
62-
<span class="ui label commit-sign-badge {{$extraClass}}">
62+
<span class="ui label commit-sign-badge github-theme-commit-sign-badge {{$extraClass}}">
6363
{{- if $verified -}}
6464
{{- if and $signingUser $signingUser.ID -}}
65-
<span data-tooltip-content="{{$msgReason}}">{{svg "gitea-lock"}}</span>
65+
<span data-tooltip-content="{{$msgReason}}">Verified</span>
6666
<span data-tooltip-content="{{$msgSigningKey}}">{{ctx.AvatarUtils.Avatar $signingUser 16}}</span>
6767
{{- else -}}
68-
<span data-tooltip-content="{{$msgReason}}">{{svg "gitea-lock-cog"}}</span>
68+
<span data-tooltip-content="{{$msgReason}}">Partially verified</span>
6969
<span data-tooltip-content="{{$msgSigningKey}}">{{ctx.AvatarUtils.AvatarByEmail $signingEmail "" 16}}</span>
7070
{{- end -}}
7171
{{- else -}}
72-
<span data-tooltip-content="{{$msgReason}}">{{svg "gitea-unlock"}}</span>
72+
<span data-tooltip-content="{{$msgReason}}">Unverified</span>
7373
{{- end -}}
7474
</span>
7575
{{- end -}}

0 commit comments

Comments
 (0)