Skip to content

Commit 7ffa3fc

Browse files
sapklunny
authored andcommitted
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
1 parent 0b2d399 commit 7ffa3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/user/settings/keys_gpg.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{$.i18n.Tr "settings.delete_key"}}
1717
</button>
1818
</div>
19-
<i class="mega-octicon octicon-key {{if or (eq .ExpiredUnix 0) ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}"></i>
19+
<i class="mega-octicon octicon-key {{if or .ExpiredUnix.IsZero ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}"></i>
2020
<div class="content">
2121
{{range .Emails}}<strong>{{.Email}} </strong>{{end}}
2222
<div class="print meta">

0 commit comments

Comments
 (0)