malachite/app/templates_src/claim.lisp
2025-08-20 00:26:44 -04:00

39 lines
2.1 KiB
Common Lisp

(text "{% extends \"root.lisp\" %} {% block head %}")
(title
(text "Create reclaim for \"{{ entry.slug }}\" - {{ name }}"))
(link ("rel" "icon") ("href" "/public/favicon.svg"))
(text "{% endblock %} {% block body %}")
(div
("class" "card container")
(h1 (text "{{ entry.slug }}"))
(p (text "Custom slug reclaims are handled through ") (b (text "{{ tetratto }}")) (text ". You'll need to have an account there to submit a claim request."))
(p (text "Please note that you are unlikely to receive a response unless your claim is accepted. Please do not submit additional requests for the same slug."))
(text "{% if metadata.tetratto_owner_username -%}")
; contact owner text
(p (text "Since this entry is connected to a user, it is encouraged that you directly contact the owner of the entry instead. If that doesn't work, you can create a regular request."))
(text "{%- endif %}")
(p (text "Once you're ready, you can submit a claim using the button below."))
(hr)
(ul
(li (b (text "Requsted slug: ")) (text "{{ entry.slug }}"))
(li (b (text "Last updated: ")) (text "{{ entry.edited / 1000|int|date(format=\"%Y-%m-%d %H:%M\", timezone=\"Etc/UTC\") }} UTC")))
(hr)
(text "{% if claimable -%}")
(text "{% if metadata.tetratto_owner_username -%}")
; contact owner button
(a
("href" "{{ tetratto }}/mail/compose?receivers={{ tetratto_owner_username }}&subject=Reclaim%20for%20%22{{ entry.slug }}%22")
("class" "button surface no_fill")
(text "{{ icon \"external-link\" }} Contact owner"))
(text "{%- endif %}")
(a
("href" "{{ tetratto }}/mail/compose?receivers={{ tetratto_handler_account_username }}&subject=Reclaim%20for%20%22{{ entry.slug }}%22")
("class" "button surface no_fill")
(text "{{ icon \"external-link\" }} Submit request"))
(text "{% else %}")
(span (text "This slug is currently not claimable as it was edited too recently. ") (a ("href" "/{{ entry.slug }}") ("class" "red") (text "Go back")))
(text "{%- endif %}"))
(text "{% endblock %}")