diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-16 00:08:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-16 00:08:07 +0200 |
commit | 4ce63b1f650ad34709fd60ae3cd708d39ccac6be (patch) | |
tree | 24bea332b8b079f8722d8974b00dbde153dd52aa /templates | |
parent | f05de37e7c69ba8a3c03e826729726dba3347c74 (diff) |
add anchors where possible0.6.3
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departure_list.html | 6 |
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 }}&highlight={{ departure.quoted_stop_name }}&platform={{ departure.quoted_platform() }}"> <span class="line {{ departure.line.css_class }}">{{ departure.line.name }}</span> {% if departure.direction_area %} |