summaryrefslogtreecommitdiff
path: root/templates/departure_list.html
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-09-04 16:47:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-09-04 16:47:40 +0200
commit7a279c0cc058d05dae63430529e67a6b284dc377 (patch)
treed060f714db22e2a40dd6d7917043fef98300c963 /templates/departure_list.html
parent1ba316ff601c5c385be01e40ffa9bfcfc6ebbcb3 (diff)
Automatically split stops into name and area0.6.1
In germany, it's typically "name, area". In switzerland, it's vice versa.
Diffstat (limited to 'templates/departure_list.html')
-rw-r--r--templates/departure_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html
index eade979..dee05b5 100644
--- a/templates/departure_list.html
+++ b/templates/departure_list.html
@@ -2,10 +2,10 @@
<li class="{{ departure.classes }}" data-timestamp="{{ departure.sort_by }}">
<a href="/trip/{{ departure.tripId }}?line={{ departure.quoted_line_name }}&amp;highlight={{ departure.quoted_stop_name }}&amp;platform={{ departure.quoted_platform() }}">
<span class="line {{ departure.line.css_class }}">{{ departure.line.name }}</span>
- {% if departure.suffix %}
- <span class="destsuffix">{{ departure.suffix }}</span>
+ {% if departure.direction_area %}
+ <span class="destsuffix">{{ departure.direction_area }}</span>
{% endif %}
- <span class="dest" aria-label="nach {{ departure.direction }}">{{ departure.direction }}
+ <span class="dest" aria-label="nach {{ departure.direction_stop }}">{{ departure.direction_stop }}
</span>
{% if departure.cancelled and departure.plannedWhen %}
<span class="time" aria-label="fällt aus, planmäßige Abfahrt um {{ departure.plannedWhen }}">