summaryrefslogtreecommitdiff
path: root/templates/stops.html
blob: d946fbede2d30ccba93d0b917d15a44511080296 (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
55
56
<!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>
					<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>
	</div>
</div>
{% include 'footer.html' %}
</body>
</html>