From 222bd52cefbf7efe689533f21e6ebaf43ed937d8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Aug 2021 10:44:10 +0200 Subject: use proper links for departure list as well --- templates/departure_list.html | 46 ++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'templates') diff --git a/templates/departure_list.html b/templates/departure_list.html index 66e2900..f3cd900 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -1,26 +1,28 @@ {% for departure in departures %} -
  • - {{ departure.line.name }} - {% if departure.suffix %} - {{ departure.suffix }} - {% endif %} - {{ departure.direction }} - - {% if departure.cancelled and departure.plannedWhen %} - - fällt aus - {{ departure.plannedWhen.strftime("%H:%M") }} +
  • + + {{ departure.line.name }} + {% if departure.suffix %} + {{ departure.suffix }} + {% endif %} + {{ departure.direction }} - {% else %} - - {% if departure.delay %} - ({{ departure.delay }}) - {% endif %} - {{ departure.relativeWhen }} - - {% endif %} - {% if departure.platform %} - {{ departure.platform }} - {% endif %} + {% if departure.cancelled and departure.plannedWhen %} + + fällt aus + {{ departure.plannedWhen.strftime("%H:%M") }} + + {% else %} + + {% if departure.delay %} + ({{ departure.delay }}) + {% endif %} + {{ departure.relativeWhen }} + + {% endif %} + {% if departure.platform %} + {{ departure.platform }} + {% endif %} +
  • {% endfor %} -- cgit v1.2.3