yera.ui.sessions_sidebar

Functions for rendering the sessions sidebar HTML.

Symbols

def live_sessions_sidebar_html — Render the global sidebar containing only active sessions.

live_sessions_sidebar_html

live_sessions_sidebar_html(
    apps: dict[str, AppFunctionWrapper],
    live_by_app: dict[str, list[SessionRecord]],
) → str

Render the global sidebar containing only active sessions.

Parameters

apps
type: dict[str, AppFunctionWrapper]

Apps currently available on this server.

live_by_app
type: dict[str, list[SessionRecord]]

Running and waiting sessions grouped by app ID.

Returns

type: str

The complete Live sidebar HTML.