add: allow mods to view user notifications
This commit is contained in:
parent
d44004e86b
commit
0983a3bb84
5 changed files with 44 additions and 15 deletions
|
@ -219,11 +219,5 @@
|
|||
("href" "/@{{ profile.username }}/outbox")
|
||||
("class" "{% if selected == 'outbox' -%}active{%- endif %}")
|
||||
(str (text "auth:label.outbox")))
|
||||
(text "{%- endif %}")
|
||||
|
||||
(text "{% if is_helper -%}")
|
||||
(a
|
||||
("href" "/requests?id={{ profile.id }}")
|
||||
(str (text "requests:label.requests")))
|
||||
(text "{%- endif %} {%- endif %}"))
|
||||
(text "{%- endmacro %}")
|
||||
|
|
|
@ -5,6 +5,17 @@
|
|||
(text "{% endblock %} {% block body %} {{ macros::nav(selected=\"notifications\") }}")
|
||||
(main
|
||||
("class" "flex flex-col gap-2")
|
||||
|
||||
; viewing other user's notifications 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 notifications! Please be careful.")))
|
||||
(text "{%- endif %}")
|
||||
|
||||
; ...
|
||||
(div
|
||||
("class" "card-nest")
|
||||
(div
|
||||
|
|
|
@ -32,6 +32,18 @@
|
|||
(text "{{ icon \"shield-alert\" }}")
|
||||
(span
|
||||
(text "View warnings")))
|
||||
(a
|
||||
("href" "/notifs?id={{ profile.id }}")
|
||||
("class" "button quaternary")
|
||||
(text "{{ icon \"bell\" }}")
|
||||
(span
|
||||
(text "Notifications")))
|
||||
(a
|
||||
("href" "/requests?id={{ profile.id }}")
|
||||
("class" "button quaternary")
|
||||
(text "{{ icon \"inbox\" }}")
|
||||
(span
|
||||
(text "Requests")))
|
||||
(button
|
||||
("class" "red quaternary")
|
||||
("onclick" "delete_account(event)")
|
||||
|
|
|
@ -638,7 +638,7 @@
|
|||
("id" "banner_file")
|
||||
("name" "file")
|
||||
("type" "file")
|
||||
("accept" "image/png,image/jpeg,image/avif,image/webp")
|
||||
("accept" "image/png,image/jpeg,image/avif,image/webp,image/gif")
|
||||
("class" "w-content"))
|
||||
(button
|
||||
("class" "primary")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue