add: show notifications/requests counts in mod panel

This commit is contained in:
trisua 2025-06-02 21:23:07 -04:00
parent 0983a3bb84
commit 4be98ead53

View file

@ -37,13 +37,19 @@
("class" "button quaternary") ("class" "button quaternary")
(text "{{ icon \"bell\" }}") (text "{{ icon \"bell\" }}")
(span (span
(text "Notifications"))) (text "Notifications"))
(span
("class" "notification")
(text "{{ profile.notification_count }}")))
(a (a
("href" "/requests?id={{ profile.id }}") ("href" "/requests?id={{ profile.id }}")
("class" "button quaternary") ("class" "button quaternary")
(text "{{ icon \"inbox\" }}") (text "{{ icon \"inbox\" }}")
(span (span
(text "Requests"))) (text "Requests"))
(span
("class" "notification")
(text "{{ profile.request_count }}")))
(button (button
("class" "red quaternary") ("class" "red quaternary")
("onclick" "delete_account(event)") ("onclick" "delete_account(event)")