fix: poll expired ui

This commit is contained in:
trisua 2025-06-05 16:34:07 -04:00
parent 460e87e90e
commit 0f556bb7c8
3 changed files with 8 additions and 2 deletions

View file

@ -1500,11 +1500,13 @@
(div
("class" "flex w-full flex-wrap gap-2")
(span ("class" "notification chip") (text "{{ total }} votes"))
(text "{% if not poll[2] -%}")
(span
("class" "notification chip")
(text "Expires in ")
(span
("class" "poll_date")
("data-created" "{{ poll[0].created }}")
("data-expires" "{{ poll[0].expires }}")))))
("data-expires" "{{ poll[0].expires }}")))
(text "{%- endif %}")))
(text "{%- endmacro %}")