template_examples.rs 29 lignes · 1886 octets
//! Reference template strings exposed for projects re-implementing their own UI.
//!
//! Each constant contains the exact Askama source of a federation HTML template,
//! suitable for adaptation to other rendering engines (Tera, Maud, Leptos…).

/// Consent screen shown after a successful federated login.
pub const CONSENT_SCREEN: &str = include_str!("../templates/consent_screen.html");
/// Error landing page for `/login/fediverse/error`.
pub const ERROR_UNAUTHORIZED: &str = include_str!("../templates/error_unauthorized.html");
/// Landing page for one-shot federation invites.
pub const INVITE_LANDING: &str = include_str!("../templates/invite_landing.html");
/// Federation login form (`@user@domain` input).
pub const LOGIN_FORM: &str = include_str!("../templates/login_form.html");
/// Waiting page rendered while the IdP processes the auth request.
pub const LOGIN_WAITING: &str = include_str!("../templates/login_waiting.html");
/// Admin: NodeInfo summary page.
pub const ADMIN_NODEINFO: &str = include_str!("../templates/admin/nodeinfo.html");
/// Admin: outbound delivery queue dashboard.
pub const ADMIN_QUEUE: &str = include_str!("../templates/admin/queue.html");
/// Admin: remote sessions browser (and revocation actions).
pub const ADMIN_SESSIONS_REMOTE: &str = include_str!("../templates/admin/sessions_remote.html");
/// Admin: federation runtime settings form.
pub const ADMIN_SETTINGS: &str = include_str!("../templates/admin/settings.html");
/// Admin: per-team invite management page.
pub const ADMIN_TEAM_INVITES: &str = include_str!("../templates/admin/team_invites.html");
/// Admin: trust-list management page.
pub const ADMIN_TRUST_LIST: &str = include_str!("../templates/admin/trust_list.html");
/// User profile: list of connected federated apps and remote sessions.
pub const CONNECTED_APPS: &str = include_str!("../templates/connected_apps.html");