FIX [private comment] show private comment in activity listings

This commit is contained in:
Julie Lenaerts 2023-02-24 12:17:22 +01:00 committed by Julien Fastré
parent 9911112e08
commit e78eb8789d
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -137,12 +137,27 @@
{{ activity.comment|chill_entity_render_box({ {{ activity.comment|chill_entity_render_box({
'disable_markdown': false, 'disable_markdown': false,
'limit_lines': 3, 'limit_lines': 3,
'metadata': false 'metadata': false,
}) }} }) }}
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.privateComment.hasCommentForUser(app.user) %}
<div class="wl-row">
<div class="wl-col title">
<h3>{{ 'Private comment'|trans }}</h3>
</div>
<div class="wl-col list">
<section class="chill-entity entity-comment-embeddable">
<blockquote class="chill-user-quote private-quote">
{{ activity.privateComment.comments[app.user.id]|chill_markdown_to_html }}
</blockquote>
</section>
</div>
</div>
{% endif %}
{# Only if ACL SEE_DETAILS AND/OR only on template SHOW ?? {# Only if ACL SEE_DETAILS AND/OR only on template SHOW ??
durationTime durationTime
travelTime travelTime