Merge branch 'issue704_private_comment_listing' into 'master'

Show private comment in activity listing

See merge request Chill-Projet/chill-bundles!497
This commit is contained in:
Julien Fastré 2023-03-06 12:41:37 +00:00
commit a9290eb3fe

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