add: outbox tab on profile
tab is only visible to profile owner and mods
This commit is contained in:
parent
5dec98d698
commit
7bda718082
12 changed files with 264 additions and 9 deletions
|
@ -5,6 +5,17 @@
|
|||
(text "{% endblock %} {% block body %} {{ macros::nav(selected=\"requests\") }}")
|
||||
(main
|
||||
("class" "flex flex-col gap-2")
|
||||
|
||||
; viewing other user's requests warning
|
||||
(text "{% if profile.id != user.id -%}")
|
||||
(div
|
||||
("class" "card w-full red flex gap-2 items-center")
|
||||
(text "{{ icon \"skull\" }}")
|
||||
(b
|
||||
(text "Viewing other user's requests! Please be careful.")))
|
||||
(text "{%- endif %}")
|
||||
|
||||
; ...
|
||||
(div
|
||||
("class" "card-nest")
|
||||
(div
|
||||
|
@ -14,12 +25,14 @@
|
|||
(text "{{ icon \"inbox\" }}")
|
||||
(span
|
||||
(text "{{ text \"requests:label.requests\" }}")))
|
||||
(text "{% if profile.id == user.id -%}")
|
||||
(button
|
||||
("onclick" "clear_requests()")
|
||||
("class" "small red quaternary")
|
||||
(text "{{ icon \"bomb\" }}")
|
||||
(span
|
||||
(text "{{ text \"notifs:action.clear\" }}"))))
|
||||
(text "{{ text \"notifs:action.clear\" }}")))
|
||||
(text "{% endif %}"))
|
||||
(div
|
||||
("class" "card tertiary flex flex-col gap-4")
|
||||
(text "{% for request in requests %} {% if request.action_type == \"CommunityJoin\" %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue