Fix time duration value
[bloat] / templates / status.tmpl
index c4f2e5f41f6d4f706a1e7224fc40cd15da12845a..536f515318fda1b830ebf83b0c0cbec71aed8267 100644 (file)
                                        <span>{{.Poll.VotesCount}} votes</span>
                                        {{if .Poll.Expired}}
                                        <span> - poll expired </span>
-                                       {{else}}
+                                       {{else if .Poll.ExpiresAt}}
                                        <span>
                                                - poll ends in
                                                <time datetime="{{FormatTimeRFC3339 .Poll.ExpiresAt}}" title="{{FormatTimeRFC822 .Poll.ExpiresAt}}">