summaryrefslogtreecommitdiff
path: root/templates/stops.html
blob: 899376d1963876933329b8df8735e12445b4648d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="de">
<head>
	<title>{{ title }}</title>
	{% include 'header.html' %}
</head>
<body>
{% include 'navbar.html' %}
<div class="container">
	<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>
			{% endfor %}
		</ul>
	</div>
</div>
{% include 'footer.html' %}
</body>
</html>