mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 19:08:45 +00:00
Fix time duration value
- Make sure that duration is not < 0 - Handle nil ExpiresAt time in poll
This commit is contained in:
parent
fe31d4197b
commit
dd23ac4867
3 changed files with 12 additions and 4 deletions
|
@ -126,7 +126,7 @@
|
|||
<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}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue