{% load filters %} {% for a in activities %} {% if forloop.counter == activities|length and not is_last_page %} {% else %} {% endif %} {{ a.date|date:"M d, Y" }} {{ a.name }} {% if a.pk in top_awards %} {% endif %} {% if a.trace_file.longitude_list|length > 2 %} {% else %} {% endif %} {% if a.sport %} {% else %} ? {% endif %} {{ a.duration|table_duration }} {% if a.distance == 0.0 %} {% else %} {{ a.distance }} {% endif %} {% endfor %} {% if is_last_page and current_page > 1 %} no more activities...       {% endif %}