From dd23ac48678c704949074dd0e41bb8a3550cc33f Mon Sep 17 00:00:00 2001 From: r Date: Wed, 19 Feb 2020 16:33:21 +0000 Subject: Fix time duration value - Make sure that duration is not < 0 - Handle nil ExpiresAt time in poll --- templates/status.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index c4f2e5f..536f515 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -126,7 +126,7 @@ {{.Poll.VotesCount}} votes {{if .Poll.Expired}} - poll expired - {{else}} + {{else if .Poll.ExpiresAt}} - poll ends in