From 1ec511435a1e44e76ae32c59ef8d39433a724d36 Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sat, 1 Aug 2026 21:28:14 +0200 Subject: [PATCH] new template --- app/templates/index.html | 287 ++++++++++++++++++++++----------------- 1 file changed, 164 insertions(+), 123 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index e270dfa..2a0cea9 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -5,131 +5,172 @@ Abfahrten - -

Abfahrten Stand: {{ generated_at }}

- {% if departures %} - - {% for d in departures %} - - - - - - {% if d.messages %} - - - +
+

Abfahrten Stand: {{ generated_at }}

+ {% if departures %} +
{{ d.icon }} - {{ d.line }} - {{ d.destination }} - {{ d.station }} - - {{ d.time_str }} - {% if d.cancelled %} - entfällt - {% elif d.delay_min and d.delay_min > 0 %} - +{{ d.delay_min }} min - {% endif %} -
- {% for m in d.messages %}{{ m }}{% if not loop.last %} · {% endif %}{% endfor %} -
+ {% for d in departures %} + + + + + + {% if d.messages %} + + + + {% endif %} + {% endfor %} +
{{ d.icon }} + {{ d.line }} + {{ d.destination }} + {{ d.station }} + + {{ d.time_str }} + {% if d.cancelled %} + entfällt + {% elif d.delay_min and d.delay_min > 0 %} + +{{ d.delay_min }} min + {% endif %} +
+ {% for m in d.messages %}{{ m }}{% if not loop.last %} · {% endif %}{% endfor %} +
+ {% else %} +
Keine Abfahrten verfügbar.
{% endif %} - {% endfor %} - - {% else %} -
Keine Abfahrten verfügbar.
- {% endif %} + + +