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.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html
index 090e47c..08be97e 100644
--- a/templates/departure_list.html
+++ b/templates/departure_list.html
@@ -1,9 +1,8 @@
{% for departure in departures %}
- {% 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 %}
+ <li class="{{ departure.classes }}" data-timestamp="{{ departure.sort_by }}">
+ {% if departure.line.productName and departure.line.fahrtNr %}
+ <div class="anchor" id="{{departure.line.productName}}{{departure.line.fahrtNr}}">
+ {% 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 %}