From 4be98ead53be117b841acb273b3ce6c24c4c8857 Mon Sep 17 00:00:00 2001 From: trisua Date: Mon, 2 Jun 2025 21:23:07 -0400 Subject: [PATCH] add: show notifications/requests counts in mod panel --- crates/app/src/public/html/mod/profile.lisp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/app/src/public/html/mod/profile.lisp b/crates/app/src/public/html/mod/profile.lisp index e1d6c9b..b238e94 100644 --- a/crates/app/src/public/html/mod/profile.lisp +++ b/crates/app/src/public/html/mod/profile.lisp @@ -37,13 +37,19 @@ ("class" "button quaternary") (text "{{ icon \"bell\" }}") (span - (text "Notifications"))) + (text "Notifications")) + (span + ("class" "notification") + (text "{{ profile.notification_count }}"))) (a ("href" "/requests?id={{ profile.id }}") ("class" "button quaternary") (text "{{ icon \"inbox\" }}") (span - (text "Requests"))) + (text "Requests")) + (span + ("class" "notification") + (text "{{ profile.request_count }}"))) (button ("class" "red quaternary") ("onclick" "delete_account(event)")