Skip to content

Commit 0ef987b

Browse files
committed
logic tweak
1 parent 75f544d commit 0ef987b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templates/shared/verifyicon.tmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Template Attributes:
44
* Verification: Verification struct
55
*/}}
66
{{if (and .Commit .Commit.Signature .Verification)}}
7-
{{$icon := ""}}
7+
{{$icon = "octicon-unverified"}}
88
{{$text := ""}}
99
{{$colorClass := ""}}
1010
{{if .Verification.Verified}}
11-
{{$icon = "octicon-verified"}}
1211
{{if eq .Verification.TrustStatus "trusted"}}
12+
{{$icon = "octicon-verified"}}
1313
{{$colorClass = "tw-text-green"}}
1414
{{$text = (ctx.Locale.Tr "sig_verified")}}
1515
{{else if eq .Verification.TrustStatus "untrusted"}}
@@ -20,7 +20,6 @@ Template Attributes:
2020
{{$text = (ctx.Locale.Tr "repo.commits.signed_by_untrusted_user_unmatched")}}
2121
{{end}}
2222
{{else}}
23-
{{$icon = "octicon-unverified"}}
2423
{{if .Verification.Warning}}
2524
{{$colorClass = "tw-text-red"}}
2625
{{else}}

0 commit comments

Comments
 (0)