pub async fn dashboard_render(
db: &Db,
registry: &AdminRegistry,
legacy_entries: &[AdminEntry],
identity: Option<&Identity>,
csrf_token: Option<&str>,
) -> StringExpand description
0.10+ dashboard renderer. Collects the registry-driven entry list,
builds a typed context, and lets minijinja render
admin/dashboard.html.
csrf_token is rendered as a hidden input inside the header’s
logout form (the only state-changing form on the dashboard). If
the template fails to render, falls back to a minimal inline
shell so the server never crashes on a bad override.