diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-08-22 10:29:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-08-22 10:29:53 +0200 |
commit | e3f7d07d8f40fb06740cfd85e30a71bf864cf94d (patch) | |
tree | e18f387d1ad39460d1746bee802a70878c4aa059 /templates/stops.html | |
parent | f5a6a5927bfcc4a2b82c34db5041bfe3a49b95e6 (diff) |
stop list: use large link areas instead of <li onclick>
Diffstat (limited to 'templates/stops.html')
-rw-r--r-- | templates/stops.html | 70 |
1 files changed, 36 insertions, 34 deletions
diff --git a/templates/stops.html b/templates/stops.html index 899376d..d946fbe 100644 --- a/templates/stops.html +++ b/templates/stops.html @@ -10,40 +10,42 @@ <div class="content"> <ul class="stops"> {% for stop in stops %} - <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> + <a href="/board/{{ stop['id'] }}"> + <span class="name">{{ stop['name'] }}</span> + <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> + </a> </li> {% endfor %} </ul> |