diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-08-22 10:44:10 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-08-22 10:44:10 +0200 |
commit | 222bd52cefbf7efe689533f21e6ebaf43ed937d8 (patch) | |
tree | 6a672e115dca6e57df4cad82cf790e696813ebd1 /templates/departure_list.html | |
parent | e3f7d07d8f40fb06740cfd85e30a71bf864cf94d (diff) |
use proper links for departure list as well
Diffstat (limited to 'templates/departure_list.html')
-rw-r--r-- | templates/departure_list.html | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html index 66e2900..f3cd900 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -1,26 +1,28 @@ {% for departure in departures %} - <li class="{{ departure.classes }}" onclick="location.href='https://dbf.finalrewind.org/map/{{ departure.tripId }}/0?from={{ departure.quoted_stop_name }}';"> - <span class="line {{ departure.line.css_class }}">{{ departure.line.name }}</span> - {% if departure.suffix %} - <span class="destsuffix">{{ departure.suffix }}</span> - {% endif %} - <span class="dest" aria-label="nach {{ departure.direction }}">{{ departure.direction }} - </span> - {% if departure.cancelled and departure.plannedWhen %} - <span class="time" aria-label="fällt aus, planmäßige Abfahrt um {{ departure.plannedWhen }}"> - <span class="delay">fällt aus</span> - {{ departure.plannedWhen.strftime("%H:%M") }} + <li class="{{ departure.classes }}"> + <a href="https://dbf.finalrewind.org/map/{{ departure.tripId }}/0?from={{ departure.quoted_stop_name }}"> + <span class="line {{ departure.line.css_class }}">{{ departure.line.name }}</span> + {% if departure.suffix %} + <span class="destsuffix">{{ departure.suffix }}</span> + {% endif %} + <span class="dest" aria-label="nach {{ departure.direction }}">{{ departure.direction }} </span> - {% else %} - <span class="time" aria-label="Abfahrtszeit: {{ departure.relativeWhen }}"> - {% if departure.delay %} - <span class="delay" aria-label="{{ departure.delay }} Minuten Verspätung">({{ departure.delay }})</span> - {% endif %} - {{ departure.relativeWhen }} - </span> - {% endif %} - {% if departure.platform %} - <span class="platform" aria-label="Gleis/Bussteig {{ departure.platform }}">{{ departure.platform }}</span> - {% endif %} + {% if departure.cancelled and departure.plannedWhen %} + <span class="time" aria-label="fällt aus, planmäßige Abfahrt um {{ departure.plannedWhen }}"> + <span class="delay">fällt aus</span> + {{ departure.plannedWhen.strftime("%H:%M") }} + </span> + {% else %} + <span class="time" aria-label="Abfahrtszeit: {{ departure.relativeWhen }}"> + {% if departure.delay %} + <span class="delay" aria-label="{{ departure.delay }} Minuten Verspätung">({{ departure.delay }})</span> + {% endif %} + {{ departure.relativeWhen }} + </span> + {% endif %} + {% if departure.platform %} + <span class="platform" aria-label="Gleis/Bussteig {{ departure.platform }}">{{ departure.platform }}</span> + {% endif %} + </a> </li> {% endfor %} |