summaryrefslogtreecommitdiff
path: root/templates/tripinfo.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/tripinfo.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/tripinfo.html')
-rw-r--r--templates/tripinfo.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/tripinfo.html b/templates/tripinfo.html
index 5cf8127..61b7037 100644
--- a/templates/tripinfo.html
+++ b/templates/tripinfo.html
@@ -88,9 +88,9 @@ Fahrtverlauf:
{{ stopover.plannedWhen.strftime('%H:%M') }}
{% endif %}
{% if stopover.is_requested_stop %}
- <span class="this-stop">{{ stopover.name }}</span>
+ <span class="this-stop">{% if stopover.name_area %}{{ stopover.name_area }}{% endif %} {{ stopover.name_stop }} </span>
{% else %}
- {{ stopover.name }}
+ {% if stopover.name_area %}{{ stopover.name_area }}{% endif %} {{ stopover.name_stop }}
{% endif %}
</li>
{% endfor %}