{%- import "partials/oneliner.html" as ol -%} {%- import "partials/csrf_field.html" as csrf -%} Doctate — Fall {{ case_id_short }}
← Fälle
{% if is_admin %}{% endif %}
{% call csrf::field(csrf_token) %}

{% if is_closed %} {% call ol::render(oneliner) %} {% else %} {% call ol::render(oneliner) %} {% endif %} {% if oneliner_is_manual %}👤{% endif %} {% if has_failed_recording %}Fehler{% else if has_document %}ausgewertet{% else %}offen{% endif %} {% if is_closed %}
{% call csrf::field(csrf_token) %}
{% else %}
{% call csrf::field(csrf_token) %}
{% endif %}

{% match recorded_at_iso %} {% when Some with (iso) %}

{% when None %} {% endmatch %} {% if is_admin %}
{{ case_id }}
{% endif %}
{% if can_analyze && !has_document %}
{% call csrf::field(csrf_token) %} Analysieren mit: {% for b in backends %} {% endfor %}
{% else if llm_missing && !has_document %} Kein LLM-Backend verfügbar — IONOS_API_KEY setzen. {% endif %} {% if is_admin %}
{% call csrf::field(csrf_token) %}
{% endif %}
{% match document_html %} {% when Some with (html) %}
{% if can_analyze %}
{% call csrf::field(csrf_token) %} Neu analysieren mit: {% for b in backends %} {% endfor %}
{% endif %}
{{ html|safe }}
{% when None %} {% match analysis_failed %} {% when Some with (failure) %} {% when None %} {% if analyzing %}
Wird analysiert …
{% else if recordings_count == 0 %}
Noch keine Aufnahmen vorhanden.
{% else %}
{{ recordings_count }} Aufnahme{% if recordings_count != 1 %}n{% endif %}, davon {{ transcribed_count }} transkribiert.
{% endif %} {% endmatch %} {% endmatch %}
→ Aufnahmen anzeigen ({{ recordings_count }})
{% if is_admin %} {% endif %}