diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-11 22:07:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 22:07:25 +0800 |
commit | 3b525d569662d6fbfd6a75be4c8df33f97af2e81 (patch) | |
tree | 48bbfc624f29c0476fe7b9d71cd0aab9ac8a299d /templates | |
parent | b82519cadc792d5e6a82b17ac6e2340ce3383a75 (diff) | |
download | gitea-3b525d569662d6fbfd6a75be4c8df33f97af2e81.tar.gz gitea-3b525d569662d6fbfd6a75be4c8df33f97af2e81.zip |
fix gpg tmpl (#3153)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/keys_gpg.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 3ae4249c8d..ac3fc3ee61 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -16,7 +16,7 @@ {{$.i18n.Tr "settings.delete_key"}} </button> </div> - <i class="mega-octicon octicon-key {{if or .Expired.IsZero (.Expired.After $.PageStartTime)}}green{{end}}"></i> + <i class="mega-octicon octicon-key {{if or (eq .ExpiredUnix 0) ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}"></i> <div class="content"> {{range .Emails}}<strong>{{.Email}} </strong>{{end}} <div class="print meta"> |