{% load i18n tz short_name %} {% if visits|length >= 200 %} {% endif %} {% for visit in visits %}
{{ visit.code }}
{% if visit.has_newer_version %} {% translate "Antérieure" %} {% elif visit.previous_visit_id %} {% translate "Dernière" %} {% endif %} {{ visit.get_visit_type_display }} {% if visit.status_icon %}{% endif %}{{ visit.get_status_display }}
{% if visit.thematics.all or visit.categories.all %}
{% for theme in visit.thematics.all %} {% if theme.icon %}{% endif %}{{ theme.name }} {% endfor %} {% for cat in visit.categories.all %} {{ cat.get_name }} {% endfor %}
{% endif %}
{{ visit.title|default:visit.description|truncatewords:15|default:visit.get_visit_type_display }}
{% if visit.location_label or visit.project %}
{% if visit.location_label %}
{{ visit.location_label|truncatechars:60 }}
{% endif %} {% if visit.project %}
{{ visit.project.name }}
{% endif %}
{% endif %}
{% if visit.inspector %} {{ visit.inspector|short_name }} · {% elif visit.author %} {{ visit.author|short_name }} · {% endif %} {% if visit.conducted_at %}{{ visit.conducted_at|localtime|date:"d/m/Y H:i" }}{% endif %} {% if visit.scheduled_due_date %} {{ visit.scheduled_due_date|date:"d/m/Y" }} {% endif %}
{% if visit.lat and visit.lon %} {% endif %} {% if visit.findings_count %} {{ visit.findings_count }} {% endif %}
{% empty %} {% endfor %}