Skip to content

Commit

Permalink
gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever…
Browse files Browse the repository at this point in the history
… valid gpg key (#7846) (#7850)

* Use .ExpiredUnix.IsZero for display green color of gpg key

* remove useless parentheses
  • Loading branch information
sapk authored and lunny committed Aug 14, 2019
1 parent f3496c8 commit 1e2fe9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user/settings/keys_gpg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{$.i18n.Tr "settings.delete_key"}}
</button>
</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">
{{range .Emails}}<strong>{{.Email}} </strong>{{end}}
<div class="print meta">
Expand Down

0 comments on commit 1e2fe9f

Please sign in to comment.