Changeset c9c6a2d in Klonkt for src/views/partials/bottom-tab.ejs


Ignore:
Timestamp:
06/21/2026 06:38:24 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
9a34d31
Parents:
d41f4be
Message:

feat(meldingen): notifications — reply on comment, comment on post, like on post

For every logged-in user (Google visitors/fans and admin). Bell icon in the
header with unread counter + notifications page /notifications (via user menu
desktop + profile sheet mobile; badge also on the mobile Profile tab). Opening =
read. Triggers in comments (reply→comment author, top-level→post author) and
like (→post author); notify() skips notifying yourself. Table notifications
+ NotificationService. NL/EN/DE.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/bottom-tab.ejs

    rd41f4be rc9c6a2d  
    107107      <% } %>
    108108      <span class="bottom-tab-label"><%= t('tab.profile') %></span>
     109      <% if (typeof notifUnread !== 'undefined' && notifUnread > 0) { %>
     110        <span class="bottom-tab-badge" aria-label="<%= notifUnread %> ongelezen meldingen"><%= notifUnread > 99 ? '99+' : notifUnread %></span>
     111      <% } %>
    109112    </button>
    110113  <% } else { %>
Note: See TracChangeset for help on using the changeset viewer.