tawny/app/templates_src/messages.lisp
2025-09-04 23:02:23 -04:00

16 lines
583 B
Common Lisp

(text "{%- import \"components.lisp\" as components -%}")
(text "{% for message in messages -%}")
(text "{{ components::message(message=message[0], replying_to=message[1], is_pinned=message[0].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 %}")