{% set wday_names = {'0':'Mo','1':'Di','2':'Mi','3':'Do','4':'Fr','5':'Sa','6':'So'} %}
{% for d in plan_days %}
{% set art = plan_articles.get(d) %}
{% set is_today = (d == today) %}
{% set d_date = d.split('-') %}
{% set weekday_idx = (d_date[0]|int, d_date[1]|int, d_date[2]|int) %}
{{ d[8:] }}.{{ d[5:7] }}.
{% if is_today %}Heute{% else %}{{ d }}{% endif %}
{{ channel.post_time or '19:55' }}
{% if art %}
{% if art.status == 'posted' %}π€
{% elif art.status == 'approved' %}β
{% elif art.status == 'sent_to_bot' %}π±
{% elif art.status in ('pending_review','draft') %}π
{% else %}βοΈ{% endif %}
{% else %}β{% endif %}
{% if art and art.content_final %}
{{ art.content_final[:80] }}
v{{ art.version }} Β· {{ art.tag or '' }}
{% else %}
Kein Artikel geplant
{% endif %}
{% if art %}
{{ {'draft':'Entwurf','sent_to_bot':'Beim Bot','approved':'Freigegeben','posted':'Gepostet','skipped':'Skip','pending_review':'Offen'}.get(art.status, art.status) }}
{% else %}
leer
{% endif %}