tawny/app/templates_src/messages.lisp

17 lines
583 B
Common Lisp
Raw Permalink Normal View History

2025-08-26 21:27:11 -04:00
(text "{%- import \"components.lisp\" as components -%}")
(text "{% for message in messages -%}")
2025-09-04 23:02:23 -04:00
(text "{{ components::message(message=message[0], replying_to=message[1], is_pinned=message[0].id in pins) }}")
2025-08-26 21:27:11 -04:00
(text "{%- endfor %}")
2025-08-27 20:22:12 -04:00
(div
("class" "hidden")
("id" "msgs_data_{{ id }}")
2025-08-28 20:26:38 -04:00
("data-first-message-time" "{{ last_message_time }}"))
2025-08-27 20:22:12 -04:00
(text "{% if messages|length == 0 -%}")
(div
("class" "hidden")
("id" "msgs_quit_{{ id }}"))
2025-09-03 17:12:26 -04:00
(i ("class" "flex gap_ch items_center fade") (text "{{ icon \"star\" }} This is the start of the chat!"))
2025-08-27 20:22:12 -04:00
(text "{%- endif %}")