summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-05-30 18:24:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-05-30 18:24:29 +0200
commit1cac79ba31858b496c03762a66eb86680ff3a3da (patch)
treecf9029ba81b48347714a5ffa894d01c1315a1674 /templates
parentdfbbf9fead33864c196ec6097b5360bfb45b610b (diff)
add delay
Diffstat (limited to 'templates')
-rw-r--r--templates/departure_list.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html
index 37f259b..e234a2c 100644
--- a/templates/departure_list.html
+++ b/templates/departure_list.html
@@ -31,7 +31,12 @@
{% if departure.cancelled and departure.plannedWhen %}
<span class="time" aria-label="um {{ departure.plannedWhen }}">{{ departure.plannedWhen.strftime("%H:%M") }}</span>
{% else %}
- <span class="time" aria-label="in {{ departure.relativeWhen }}">{{ departure.relativeWhen }}</span>
+ <span class="time" aria-label="Abfahrtszeit: {{ departure.relativeWhen }}">
+ {% if departure.delay %}
+ <span class="delay" aria-label="{{ departure.delay }} Minuten Verspätung">({{ departure.delay }})</span>
+ {% endif %}
+ {{ departure.relativeWhen }}
+ </span>
{% endif %}
{% if departure.platform %}
<span class="platform" aria-label="Gleis/Bussteig {{ departure.platform }}">{{ departure.platform }}</span>