{% load i18n %}
{% for a in activities %}
{% if a.times > 1 %}({{ a.times }}x){% endif %} {{ a.readable_name.get_user_text|capfirst }} {% if a.has_percent %} - {{ a.percentage }}% {% endif %} {% if a.times < 2%}{{ a.started|date:"Y-m-d H:i" }}{% endif %}{% if a.user %}, {% include "dashboard/_display-name.html" with user=a.user show_org=True %} {% endif %} {% if a.is_abortable_for_user %}
{% csrf_token %}
{% endif %} {% if a.children.count > 0 %}
{% for s in a.children.all %}
{{ s.readable_name.get_user_text|capfirst }} – {% if s.finished %} {{ s.finished|time:"H:i:s" }} {% 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 %}