diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-06-27 11:16:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-06-27 11:16:07 +0200 |
commit | fa0c4f8837bd3270a739ce5d7b4b82473ea67268 (patch) | |
tree | 2a6cf281ed2d8925574a771c7725cffcb2cdc418 /templates | |
parent | 5b0c3d3bf6ab35ca3ecb10914a350894e1e8cc7e (diff) |
show line types in stop search
Diffstat (limited to 'templates')
-rw-r--r-- | templates/stops.html | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/templates/stops.html b/templates/stops.html index 3889b7e..affac69 100644 --- a/templates/stops.html +++ b/templates/stops.html @@ -9,8 +9,40 @@ <div class="content"> <ul class="stops"> {% for stop in stops %} - <li> + <li onclick="location.href='/board/{{ stop['id'] }} ';"> <a class="name" href="/board/{{ stop['id'] }}">{{ stop['name'] }}</a> + <span class="lines"> + {% if stop["products"]["nationalExpress"] %} + <span class="longdistance">ICE</span> + {% endif %} + {% if stop["products"]["national"] %} + <span class="longdistance">IC</span> + {% endif %} + {% if stop["products"]["regionalExp"] %} + <span class="regional">RE</span> + {% endif %} + {% if stop["products"]["regional"] %} + <span class="regional">R</span> + {% endif %} + {% if stop["products"]["suburban"] %} + <span class="suburban">S</span> + {% endif %} + {% if stop["products"]["subway"] %} + <span class="subway">U</span> + {% endif %} + {% if stop["products"]["tram"] %} + <span class="tram">T</span> + {% endif %} + {% if stop["products"]["bus"] %} + <span class="bus">Bus</span> + {% endif %} + {% if stop["products"]["ferry"] %} + <span class="bus">Fähre</span> + {% endif %} + {% if stop["products"]["taxi"] %} + <span class="taxi">AST</span> + {% endif %} + </span> </li> {% endfor %} </ul> |