render_box comment embeddable, misc

This commit is contained in:
2021-07-31 14:48:03 +02:00
parent 98dd31dffc
commit 8c06014ea5
6 changed files with 97 additions and 48 deletions

View File

@@ -147,21 +147,23 @@
</div>
</div>
{%
if activity.comment.comment is not empty
{% if activity.comment.comment is not empty
or activity.persons|length > 0
or activity.thirdParties|length > 0
or activity.users|length > 0
%}
<div class="item-row details">
<div class="item-col">
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': activity } %}
</div>
{% if activity.comment.comment is not empty %}
<div class="item-col comment">
{{ activity.comment|chill_entity_render_box( { 'limit_lines': 3, 'metadata': false } ) }}
<div class="item-col">
{{ activity.comment|chill_entity_render_box({
'disable_markdown': false,
'limit_lines': 3,
'metadata': false,
}) }}
</div>
{% endif %}
</div>