mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-24 11:06:14 +00:00
29 lines
890 B
Twig
29 lines
890 B
Twig
{% macro updatedBy(entity) %}
|
|
<div class="updatedBy">
|
|
{{ 'Last updated on'|trans }}
|
|
<span class="date">
|
|
{{ entity.updatedAt|format_datetime('medium', 'short') }}
|
|
</span>
|
|
{% if entity.updatedBy %}
|
|
{{ ', ' ~ 'by_user'|trans }}
|
|
<span class="user">
|
|
{{ entity.updatedBy|chill_entity_render_box }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro createdBy(entity) %}
|
|
<div class="updatedBy">
|
|
{{ 'Created on'|trans }}
|
|
<span class="date">
|
|
{{ entity.createdAt|format_datetime('medium', 'short') }}
|
|
</span>
|
|
{% if entity.createdBy %}
|
|
{{ ', ' ~ 'by_user'|trans }}
|
|
<span class="user">
|
|
{{ entity.createdBy|chill_entity_render_string }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %} |