{#- Shared 5-state oneliner renderer. Emits the inline content only (no
    prefix/suffix), so callers can wrap it in their own context — a
    " — " separator in the case list, an <h1> span on the case page. -#}
{% macro render(ol) -%}
{% match ol -%}
{% when OnelinerDisplay::Ready with (t) %}{{ t }}
{%- when OnelinerDisplay::Empty %}<span class="empty">unbenannt</span>
{%- when OnelinerDisplay::Error %}<span class="empty">Fehler</span>
{%- when OnelinerDisplay::Pending %}<span class="pending">transkribiere …</span>
{%- when OnelinerDisplay::Generating %}<span class="pending">generiere Titel …</span>
{%- endmatch %}
{%- endmacro %}
