Add private comment options to activity type (visibility + label)

This commit is contained in:
2022-04-25 15:46:55 +02:00
parent 1f2638626c
commit b36fd57e4f
7 changed files with 82 additions and 9 deletions

View File

@@ -146,8 +146,12 @@
</dd>
{% endif %}
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) and entity.privateComment.userId is same as(app.user.id) %}
<dt class="inline">{{ 'activity.private comment'|trans }}</dt>
{% if t.privateCommentVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) and entity.privateComment.userId is same as(app.user.id) %}
{% if t.privateCommentLabel is not empty %}
<dt class="inline">{{ t.privateCommentLabel }}</dt>
{% else %}
<dt class="inline">{{ 'activity.private comment'|trans }}</dt>
{% endif %}
<dd>
{%- if entity.privateComment.empty -%}
<span class="chill-no-data-statement">{{ 'No comment associated'|trans }}</span>