{% extends "rails/base.html" %} {% block title %}Departures{% endblock %} {% block content %} {% if departures %}

Departures from {{ departures.0.station_from.city }} ({{ departures.0.station_from.code }})

{% endif %} {% for dep in departures %}

{{ dep.name }}

Departs at: {{ dep.departs_at }}
Arrives at: {{ dep.arrives_at }}
Cars: {{ dep.first_class}} FC, {{ dep.second_class }} SC ({{ dep.seats_per_car }} seats/car)

{% empty %} {% if error %}

Error

There was a problem connecting to the API.

{{ error }}

(The above error is shown to the user as an example. For security reasons these errors are normally hidden from the user)

{% else %}

There are no departures available at this time.

{% endif %} {% endfor %} {% endblock %} {% block footer %} {% endblock %}