Renders a navbar bell-icon notification dropdown showing unread and total message counts for the current user, with live polling every 5 seconds.
MESSAGENOTIFICATIONS — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 is forwarded to the polling RPC. Reads $user$ from process_text to identify the current user. Returns an HTML <li class="nav-item dropdown"> fragment suitable for embedding in a Bootstrap navbar. The dropdown shows unread and total message counts from stage_message where DateExpire >= now(). Polls every 5 seconds.
RpcGetseries(Data)Re-runs the message count queries for Data["user"] and returns [html_fragment] with the refreshed dropdown markup.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
ahref |
URL for "See All Notifications" and message links (default: "/report/Profile") |
style |
Inline style string applied to the toggle <a> element |
Loads axion.rpc.js and shortuuid. The dropdown preserves its open/closed state across polls by checking classList.contains("show") before each RPC call.