{% import "@ChillDocStore/Macro/macro.html.twig" as m %} {% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %} {% import '@ChillPerson/Macro/updatedBy.html.twig' as mmm %} {% set c = document.calendar %}
{% if document.storedObject.isPending %}
{{ 'docgen.Doc generation is pending'|trans }}
{% elseif document.storedObject.isFailure %}
{{ 'docgen.Doc generation failed'|trans }}
{% endif %}
{{ 'Calendar'|trans }} {% if c.endDate.diff(c.startDate).days >= 1 %} {{ c.startDate|format_datetime('short', 'short') }} - {{ c.endDate|format_datetime('short', 'short') }} {% else %} {{ c.startDate|format_datetime('short', 'short') }} - {{ c.endDate|format_datetime('none', 'short') }} {% endif %}
{{ document.storedObject.title|chill_print_or_message("No title") }}
{% if document.storedObject.hasTemplate %}

{{ document.storedObject.template.name|localize_translatable_string }}

{% endif %}
{{ document.storedObject.createdAt|format_date('short') }}
{% if c.accompanyingPeriod is not null and context == 'person' %}
{{ c.accompanyingPeriod.id }}  
{% endif %}
{% if show_actions %}
{{ mmm.createdBy(document) }}
{% endif %}