generated from t/malachite
add: images in messages for supporters
This commit is contained in:
parent
1c1eb3be5d
commit
dfa1abe2d9
7 changed files with 116 additions and 4 deletions
|
@ -75,7 +75,15 @@
|
|||
(div
|
||||
("class" "body no_p_margin")
|
||||
("id" "{{ message.id }}_body")
|
||||
(text "{{ message.content|markdown|safe }}"))
|
||||
(text "{{ message.content|markdown|safe }}")
|
||||
(div
|
||||
("class" "flex flex_col gap_1 {% if message.uploads|length == 0 -%} hidden {%- endif %}")
|
||||
(text "{% for upload in message.uploads -%}")
|
||||
(a
|
||||
("href" "{{ config.service_hosts.buckets }}/message_media/{{ upload }}")
|
||||
("target" "_blank")
|
||||
(img ("class" "upload") ("src" "{{ config.service_hosts.buckets }}/message_media/{{ upload }}") ("alt" "Media upload")))
|
||||
(text "{%- endfor %}")))
|
||||
(form
|
||||
("class" "body hidden flex flex_row gap_ch")
|
||||
("id" "{{ message.id }}_edit_area")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue