summaryrefslogtreecommitdiff
path: root/templates/departure_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/departure_list.html')
-rw-r--r--templates/departure_list.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html
index dee05b5..090e47c 100644
--- a/templates/departure_list.html
+++ b/templates/departure_list.html
@@ -1,5 +1,9 @@
{% for departure in departures %}
- <li class="{{ departure.classes }}" data-timestamp="{{ departure.sort_by }}">
+ {% if departure.line.productName and departure.line.fahrtNr %}
+ <li class="{{ departure.classes }}" data-timestamp="{{ departure.sort_by }}" id="{{departure.line.productName}}{{departure.line.fahrtNr}}">
+ {% else %}
+ <li class="{{ departure.classes }}" data-timestamp="{{ departure.sort_by }}">
+ {% endif %}
<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.direction_area %}