mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 03:27:51 +01:00
gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7846)
* Use .ExpiredUnix.IsZero for display green color of gpg key * remove useless parentheses
This commit is contained in:
parent
0b2d399b1c
commit
7ffa3fcfa0
@ -16,7 +16,7 @@
|
|||||||
{{$.i18n.Tr "settings.delete_key"}}
|
{{$.i18n.Tr "settings.delete_key"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<i class="mega-octicon octicon-key {{if or (eq .ExpiredUnix 0) ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}"></i>
|
<i class="mega-octicon octicon-key {{if or .ExpiredUnix.IsZero ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}"></i>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{range .Emails}}<strong>{{.Email}} </strong>{{end}}
|
{{range .Emails}}<strong>{{.Email}} </strong>{{end}}
|
||||||
<div class="print meta">
|
<div class="print meta">
|
||||||
|
Loading…
Reference in New Issue
Block a user