diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-02-26 18:25:45 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-02-26 12:25:45 +0200 |
commit | 769ab1e4240f820efdb231832cb7957cb4902807 (patch) | |
tree | d6bd9f8fe9beea000c78cfb7d1030d848c30ad44 /templates/user | |
parent | 521945a2d2af421f365b5ed368833f0eb62bc0b9 (diff) | |
download | gitea-769ab1e4240f820efdb231832cb7957cb4902807.tar.gz gitea-769ab1e4240f820efdb231832cb7957cb4902807.zip |
fix gpg expired bug when time is zero (#3584)
Diffstat (limited to 'templates/user')
-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 ac3fc3ee61..c2af8554cd 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -26,7 +26,7 @@ <div class="activity meta"> <i>{{$.i18n.Tr "settings.add_on"}} <span>{{.AddedUnix.FormatShort}}</span></i> - - <i>{{if .ExpiredUnix}}{{$.i18n.Tr "settings.valid_until"}} <span>{{.ExpiredUnix.FormatShort}}</span>{{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}}</i> + <i>{{if not .ExpiredUnix.IsZero}}{{$.i18n.Tr "settings.valid_until"}} <span>{{.ExpiredUnix.FormatShort}}</span>{{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}}</i> </div> </div> </div> |