{% 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 %}
{{ document.storedObject.title }}
{{ 'chill_calendar.Document'|trans }}
{% if document.storedObject.hasTemplate %}

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

{% endif %}
{{ document.storedObject.createdAt|format_date('short') }}

{% 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 %}

{{ mmm.createdBy(document) }}