summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-14 03:39:44 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-08-14 09:39:44 +0800
commit7ffa3fcfa07e6a3dfecf7851ba97791f7bffd82e (patch)
treef8da1c2929d8310e14f65385bff3db1ed9a50a2b /templates
parent0b2d399b1c91d219318f6b021f0c2d85142aed5e (diff)
downloadgitea-7ffa3fcfa07e6a3dfecf7851ba97791f7bffd82e.tar.gz
gitea-7ffa3fcfa07e6a3dfecf7851ba97791f7bffd82e.zip
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
Diffstat (limited to 'templates')
-rw-r--r--templates/user/settings/keys_gpg.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index c2af8554cd..0a4afbfb63 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 (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">