""" HTML Templates fΓΌr OIDC Server Modernes Design mit Dark Mode Support """ USER_ANALYTICS_TEMPLATE = """ My Active Sessions

My Active Sessions

{{ user.name }} ({{ user.email }})

Active Sessions

{{ summary.total_active_sessions }}
Currently active

Applications

{{ summary.total_clients }}
You're using

Active Sessions

{% if active_sessions %} {% set current_client = namespace(value='') %} {% for session in active_sessions %} {% if session.client_name != current_client.value %} {% set current_client.value = session.client_name %} {% if not loop.first %}
{% endif %}

{{ session.client_name }}

{% endif %}
Session
Active
Created: {{ session.created_at.strftime('%Y-%m-%d %H:%M:%S') }} | Expires: {{ session.expires_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if loop.last %}
{% endif %} {% endfor %} {% else %}
No active sessions. Log in to an application to see sessions here.
{% endif %} """ LOGIN_TEMPLATE = """ OIDC IdP - Login

πŸ” Homelab OIDC Login

Secure authentication for your homelab services

""" REGISTER_TEMPLATE = """ OIDC IdP - Registration

Create New Account

Join your homelab authentication system

""" CHANGE_PASSWORD_TEMPLATE = """ OIDC IdP - Change Password

Change Password

Update your account security

""" INDEX_TEMPLATE = """ OIDC Identity Provider

πŸ” OIDC Identity Provider

Secure authentication server for your services

Administrators: Access admin panel

"""