THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7846) (#7850)

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

* remove useless parentheses
tags/v1.9.1
Antoine GIRARD Lunny Xiao <xiaolunwen@gmail.com> 3 months ago
parent
commit
1e2fe9f0b4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/user/settings/keys_gpg.tmpl

+ 1
- 1
templates/user/settings/keys_gpg.tmpl View File

@@ -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">


Loading…
Cancel
Save