{# This file is part of g0v/OpenTransLive. Copyright (c) 2025 Sean Gau Licensed under the GNU AGPL v3.0 See LICENSE for details. -#} {% extends "base.html" %} {% block title %}GT Live 廣田資訊 - My Sessions{% endblock %} {% block content %}
My Sessions
{{ current_email }} Logout
{% if not is_realtime_enabled %}
Your account does not have realtime transcription access. To use the microphone in a panel session, contact an administrator to enable it.
{% endif %}
{% include "partials/usage_chart.html" %}

API Key & Permissions

Your permissions

{% for perm in permissions %} {{ perm }} {% else %} No permissions {% endfor %}

API key

One key per account. Use it as Authorization: Bearer <key> for the API, or as the client's API_KEY. The full key is shown only once when generated.

{% if api_key_prefix %} {{ api_key_prefix }}… active {% else %} No key generated {% endif %}
{% if api_key_prefix %} {% endif %}

Session Rooms

Start New Session

{% if rooms %}
{% for room in rooms %}
{{ room.sid }} {% if room.is_co_owner %} Co-owner {% endif %}
Created: {% if room.created_at %} {{ room.created_at[:19].replace('T', ' ') }} UTC {% else %} — {% endif %}
Audio: {% set dur = room.audio_duration_secs or 0 %} {% if dur > 0 %}
{{ (dur // 60)|int }}:{{ '%02d' % ((dur % 60)|int) }} {% else %} — {% endif %}
Panel Edit {% if not room.is_co_owner %} {% endif %}
{% endfor %}
{% else %}
No sessions yet. Go to the homepage to start a session.
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}