generated from t/malachite
add: working chat ui
This commit is contained in:
parent
f53eb3d367
commit
b360c5e737
14 changed files with 319 additions and 53 deletions
17
app/templates_src/read_receipt.lisp
Normal file
17
app/templates_src/read_receipt.lisp
Normal file
|
@ -0,0 +1,17 @@
|
|||
(text "{%- import \"components.lisp\" as components -%}")
|
||||
(text "{% if chat.last_message_created > 0 -%}")
|
||||
(div
|
||||
("class" "flex gap_ch items_center")
|
||||
("id" "delivered_read_status")
|
||||
(text "{% if chat.last_message_read_by|length <= 1 -%}")
|
||||
; just delivered
|
||||
(text "{{ icon \"check\" }}")
|
||||
(text "{{ chat.last_message_created|int|date(format=\"%H:%M\", timezone=\"Etc/UTC\") }} UTC")
|
||||
(text "{%- else -%}")
|
||||
; delivered and read by at least two people
|
||||
(text "{{ icon \"check-check\" }}")
|
||||
(text "{% for uid in chat.last_message_read_by -%}")
|
||||
(text "{{ components::avatar(id=uid) }}")
|
||||
(text "{%- endfor %}")
|
||||
(text "{%- endif %}"))
|
||||
(text "{%- endif %}")
|
Loading…
Add table
Add a link
Reference in a new issue