{% extends "base.html" %} {% from "fragments/export_menu.html" import export_menu %} {% from "fragments/outline_fallback.html" import outline_fallback %} {% block title %}Voxint — transcript {{ run.id.hex[:8] }}{% endblock %} {# Canonical parent, no origin tracking: transcripts belong to Runs. #} {% block cb_breadcrumb %}runs / {{ run.id.hex[:8] }}{% endblock %} {% block body %}
{{ run.id.hex[:8] }}{{ run.media_item.source_path }}
{{ translation_ctx.note }}
{% endif %} {% if not read and translation_ctx.active %}Machine-translated to {{ translation_ctx.active.label }} {%- if translation_ctx.active.source_language %} from {{ language_label(translation_ctx.active.source_language) }}{% endif %} by {{ translation_ctx.active.model }}, {{ translation_ctx.active.completed_at.strftime("%Y-%m-%d %H:%M") }} — a working rendition, not a certified translation.
{% endif %} {{ export_menu(run, text, translation_ctx.fresh) }} {% if not lines %}No transcript segments for this run.
{% elif read %} {# Server-rendered reading view: one heading + paragraph per contiguous same-speaker run. Grouping and timestamp formatting are done in Python (paragraphize_transcript / format_timespan); the template only lays out the supplied rows. Jinja autoescape keeps hostile transcript text literal. #}{% if row.timespan %}{{ row.timespan }} {% endif %}{% for tl in row.lines %}{% if not loop.first %}
{% endif %}{{ tl }}{% endfor %}
[{{ "%.2f"|format(ln.start_seconds) }}–{{ "%.2f"|format(ln.end_seconds) }}] {% if uncertain %}uncertain{% endif %} {% if ln.diarization_label %}{{ ln.diarization_label }}{% endif %} {% if ln.speaker != ln.diarization_label %}{{ ln.speaker }}:{% endif %} {{ ln.text }} {# Interleaved translation (issue #133): the fresh generation's line, by order — the same texts the hydrated island renders. Empty lines add no row. #} {% if translation_ctx.active and translation_ctx.active.texts[loop.index0] %} {{ translation_ctx.active.texts[loop.index0] }} {% endif %}
{% endfor %}