show activity attendee (présence) in the activity list

This commit is contained in:
nobohan 2022-01-28 11:40:08 +01:00
parent 33f393203e
commit 4d1a553474
2 changed files with 12 additions and 5 deletions

View File

@ -41,6 +41,17 @@
</div> </div>
{% endif %} {% endif %}
{% if activity.attendee and t.attendeeVisible %}
<div class="wl-row">
<div class="wl-col title"><h3>{{ 'Attendee'|trans }}</h3></div>
<div class="wl-col list">
<p class="wl-item">
{{ activity.attendee.name|localize_translatable_string }}
</p>
</div>
</div>
{% endif %}
{% if activity.sentReceived is not empty and t.sentReceivedVisible %} {% if activity.sentReceived is not empty and t.sentReceivedVisible %}
<div class="wl-row"> <div class="wl-row">
<div class="wl-col title"><h3>{{ 'Sent received'|trans }}</h3></div> <div class="wl-col title"><h3>{{ 'Sent received'|trans }}</h3></div>

View File

@ -165,11 +165,7 @@
<dt class="inline">{{ 'Attendee'|trans }}</dt> <dt class="inline">{{ 'Attendee'|trans }}</dt>
<dd> <dd>
{% if entity.attendee is not null %} {% if entity.attendee is not null %}
{% if entity.attendee %} {{ entity.attendee.name|localize_translatable_string }}
{{ 'present'|trans|capitalize }}
{% else %}
{{ 'not present'|trans|capitalize }}
{% endif %}
{% else %} {% else %}
<span class="chill-no-data-statement">{{ 'None'|trans|capitalize }}</span> <span class="chill-no-data-statement">{{ 'None'|trans|capitalize }}</span>
{% endif %} {% endif %}