add concerned parties in show activity page (2 contexts)

This commit is contained in:
2021-06-03 19:13:58 +02:00
parent 32b3d74a1b
commit 987815471c
14 changed files with 99 additions and 21 deletions

View File

@@ -1,5 +1,4 @@
<h1 >{{ "Activity"|trans }}</h1>
<dl class="chill_view_data">
<dt class="inline">{{ 'User'|trans }}</dt>
<dd>{{ entity.user }}</dd>
@@ -8,8 +7,13 @@
<dt class="inline">{{ 'Scope'|trans }}</dt>
<dd><span class="scope">{{ entity.scope.name|localize_translatable_string }}</span></dd>
{% endif %}
</dl>
<h2 class="chill-red">{{ 'Activity data'|trans }}</h2>
<h2 class="chill-red">{{ 'Concerned groups'|trans }}</h2>
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context } %}
<h2 class="chill-red">{{ 'Activity data'|trans }}</h2>
<dl class="chill_view_data">
{%- if entity.person is defined -%}
<dt class="inline">{{ 'Person'|trans }}</dt>
@@ -39,7 +43,6 @@
{%- else -%}
<dd>{{ entity.comment|chill_entity_render_box }}</dd>
{%- endif -%}
</dl>
{% set person_id = null %}