{% extends "page.html" %} {% block content %}
{% if trips %}

{% if is_self %}My{% else %}{{ for_user.username }}'s{% endif %} trips

{% for trip in trips %} {% endfor %}
Name Start date End date
{{ trip.name }} {{ trip.start_date|date }} {{ trip.end_date|date }} {% for t in trip.transportations %}{% endfor %}
{% else %}
{% if is_self %} You have no trips. Start by adding one. {% else %} User {{ for_user.username }} has no trips. {% endif %}
{% endif %}
{% if is_self %}
{% if trips %} add a trip {% endif %}
{% endif %} {% endblock %}