mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:17:53 +01:00
d55a0b7238
* Refactor `i18n` to `locale` - Currently we're using the `i18n` variable naming for the `locale` struct. This contains locale's specific information and cannot be used for general i18n purpose, therefore refactoring it to `locale` makes more sense. - Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 * Update routers/install/install.go
16 lines
774 B
Handlebars
16 lines
774 B
Handlebars
<div class="ui detail icon button">
|
|
{{if .verification.Verified}}
|
|
<div title="{{if eq .verification.TrustStatus "trusted"}}{{else if eq .verification.TrustStatus "untrusted"}}{{$.root.locale.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{$.root.locale.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.verification.Reason}}">
|
|
{{if ne .verification.SigningUser.ID 0}}
|
|
{{svg "gitea-lock"}}
|
|
{{avatar .verification.SigningUser 28 "signature"}}
|
|
{{else}}
|
|
<span title="{{$.root.locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog"}}</span>
|
|
{{avatarByEmail .verification.SigningEmail "" 28 "signature"}}
|
|
{{end}}
|
|
</div>
|
|
{{else}}
|
|
<span title="{{$.root.locale.Tr .verification.Reason}}">{{svg "gitea-unlock"}}</span>
|
|
{{end}}
|
|
</div>
|