summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/stops.html70
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>