{% load i18n %}

{% blocktranslate %}There were {{ activities_count }} activities on {{ report_date }}.{% endblocktranslate %}

{{ table|safe }}
{% for person_name, activities in map_activities %}

{{ person_name }}:

{% for activity in activities %} {% if activity.type == 'Call' %} {% elif activity.type == 'Meeting' %} {% elif activity.type == 'Encounter' %} {% elif activity.type == 'Task' %} {% elif activity.type == 'Email' %} {% elif activity.type == 'Event' %} {% elif activity.type == 'Business Travel' %} {% elif activity.type == 'Holiday' %} {% elif activity.type == 'Lunch' %} {% else %} {% endif %} {% endfor %}
{{ activity.title }} {{ activity.start|date:'H:i' }} - {{ activity.end|date:'H:i' }}
{% endfor %}