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