{# Отметки классификации и автосозданные сущности письма (правая панель) #}
{% if tags %}
Отметки {% for t in tags %} {{ t }} {% endfor %} {% if meeting_at %}🗓 {{ meeting_at }}{% endif %}
{% if reason %}
почему так размечено
{{ reason }}
{% endif %} {% set ev = ents.event if ents else None %} {% set tk = ents.task if ents else None %} {% if ('meeting' in tags) or (ev and (ev.exists or ev.state)) %}
📅 Событие в календаре {%- if ev and ev.exists -%}создано{%- elif ev and ev.state == 'disabled' -%}отключено{%- else -%}нет{%- endif -%} {% if ev and ev.exists %} {% else %} {% endif %}
{% endif %} {% if ('task' in tags) or (tk and (tk.exists or tk.state)) %}
✅ Задача {%- if tk and tk.exists -%}создана{%- elif tk and tk.state == 'disabled' -%}отключена{%- else -%}нет{%- endif -%} {% if tk and tk.exists %} {% else %} {% endif %}
{% endif %}
{% endif %}