{% load i18n %} {% load hro %} {% load arrowfilter %}
{% for a in activities %}
{{ a.readable_name.get_admin_text|capfirst }} {{ a.started|arrowfilter:LANGUAGE_CODE }}{% if a.user %}, {{ a.user }}{% endif %} {% if a.children.count > 0 %}
{% for s in a.children.all %}
{{ s.readable_name|get_text:user }} – {% if s.finished %} {{ s.finished|arrowfilter:LANGUAGE_CODE }} {% else %} {% endif %} {% if s.has_failed %}
{% trans "failed" %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if show_show_all %}
{% if activities|length > 10 %} {% trans "Show less activities" %} {% else %} {% trans "Show all activities" %} {% endif %}
{% endif %}