tawny/app/templates_src/messages.lisp
2025-09-03 17:12:26 -04:00

16 lines
553 B
Common Lisp

(text "{%- import \"components.lisp\" as components -%}")
(text "{% for message in messages -%}")
(text "{{ components::message(message=message, is_pinned=message.id in pins) }}")
(text "{%- endfor %}")
(div
("class" "hidden")
("id" "msgs_data_{{ id }}")
("data-first-message-time" "{{ last_message_time }}"))
(text "{% if messages|length == 0 -%}")
(div
("class" "hidden")
("id" "msgs_quit_{{ id }}"))
(i ("class" "flex gap_ch items_center fade") (text "{{ icon \"star\" }} This is the start of the chat!"))
(text "{%- endif %}")