{% extends "rails/base.html" %} {% block title %}Arrivals{% endblock %} {% block content %} {% if arrivals %}

Arrivals to {{ arrivals.0.station_to.city }} ({{ arrivals.0.station_to.code }})

{% endif %} {% for arv in arrivals %}

{{ arv.name }}

Departs at: {{ arv.departs_at }}
Arrives at: {{ arv.arrives_at }}
Cars: {{ arv.first_class}} FC, {{ arv.second_class }} SC ({{ arv.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 arrivals available at this time.

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