FEATURE [documents][listing] show document titles in activity listing if there are any and user has see_detail rights

This commit is contained in:
Julie Lenaerts 2023-02-24 12:31:46 +01:00 committed by Julien Fastré
parent aacb54037b
commit 23cee274a5
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -165,6 +165,22 @@
documents
attendee
#}
{% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.documents|length > 0 %}
<div class="wl-row">
<div class="wl-col title">
<h3>{{ 'Documents'|trans }}</h3>
</div>
<div class="wl-col list">
<ul>
{% for d in activity.documents %}
<li>{{ d.title }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>