generated from t/malachite
add: user profiles and junk
This commit is contained in:
parent
6b8c33d27f
commit
2bd23f8214
28 changed files with 1139 additions and 108 deletions
28
app/templates_src/confirm_dm.lisp
Normal file
28
app/templates_src/confirm_dm.lisp
Normal file
|
@ -0,0 +1,28 @@
|
|||
(text "{% extends \"root.lisp\" %} {% block head %}")
|
||||
(title
|
||||
(text "Message {{ profile.username }}? — {{ config.name }}"))
|
||||
(text "{% endblock %} {% block body %}")
|
||||
(div
|
||||
("class" "card flex flex_col gap_ch")
|
||||
(p (text "Are you sure you would like to direct message ") (a ("href" "/@{{ profile.username }}") (text "{{ profile.username }}")) (text "?"))
|
||||
(div
|
||||
("class" "flex gap_2")
|
||||
(text "{% if user -%}")
|
||||
(button
|
||||
("class" "button surface green")
|
||||
("onclick" "create_direct_chat_with_user('{{ profile.username }}')")
|
||||
(text "{{ icon \"arrow-right\" }} Continue"))
|
||||
(text "{% else %}")
|
||||
(a
|
||||
("class" "button surface green")
|
||||
("href" "/login?redirect=/@{{ profile.username }}/confirm_dm")
|
||||
(text "{{ icon \"arrow-right\" }} Sign in to message"))
|
||||
(text "{%- endif %}")
|
||||
|
||||
(a
|
||||
("class" "button surface red")
|
||||
("href" "/")
|
||||
(text "{{ icon \"x\" }} Cancel"))))
|
||||
|
||||
(script ("src" "/public/messages.js"))
|
||||
(text "{% endblock %}")
|
Loading…
Add table
Add a link
Reference in a new issue