mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix rendering for timeline entries in center context
This commit is contained in:
parent
cad8174333
commit
25c986cc61
@ -1,7 +1,7 @@
|
|||||||
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
|
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3>{% if 'person' != context %}{{ activity.person|chill_entity_render_box({'addLink': true}) }} / {% endif %}{{ activity.date|format_date('long') }}<span class="activity"> / {{ 'Activity'|trans }}</span></h3>
|
<h3>{{ activity.date|format_date('long') }}<span class="activity"> / {{ 'Activity'|trans }}</span>{% if 'person' != context %} / {{ activity.person|chill_entity_render_box({'addLink': true}) }}{% endif %}</h3>
|
||||||
<div class="statement">
|
<div class="statement">
|
||||||
<span class="statement">{{ '%user% has done an %activity_type%'|trans(
|
<span class="statement">{{ '%user% has done an %activity_type%'|trans(
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
{{ period.closingDate|format_date('long') }}
|
{{ period.closingDate|format_date('long') }}
|
||||||
<span class="person"> / </span>
|
<span class="person"> / </span>
|
||||||
{{ 'An accompanying period ends'|trans }}
|
{{ 'An accompanying period ends'|trans }}
|
||||||
|
{% if 'person' != context %}
|
||||||
|
{% for p in period.persons %}
|
||||||
|
/ {{ p|chill_entity_render_box({'addLink': true}) }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="statement">
|
<div class="statement">
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
{{ period.openingDate|format_date('long') }}
|
{{ period.openingDate|format_date('long') }}
|
||||||
<span class="person"> / </span>
|
<span class="person"> / </span>
|
||||||
{{ 'An accompanying period starts'|trans }}
|
{{ 'An accompanying period starts'|trans }}
|
||||||
|
{% if 'person' != context %}
|
||||||
|
{% for p in period.persons %}
|
||||||
|
/ {{ p|chill_entity_render_box({'addLink': true}) }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="statement">
|
<div class="statement">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user