blob: 61b703780c682e38b1801e9f8a5baa9ede39b095 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
<div class="dataline">
<div><div class="arrival">
{% if tripinfo.arrival %}
An:
{% if tripinfo.arrivalDelay %}
<span class="delay">{{ tripinfo.arrival.strftime('%H:%M') }}</span>
<br/>Plan: {{ tripinfo.plannedArrival.strftime('%H:%M') }}
{% else %}
{{ tripinfo.arrival.strftime('%H:%M') }}
{% endif %}
{% elif tripinfo.plannedArrival %}
{% if tripinfo.cancelled %}
<span class="delay">An: ––:––</span>
<br/>Plan: {{ tripinfo.plannedArrival.strftime('%H:%M') }}
{% else %}
An: <i class="material-icons">gps_off</i> {{ tripinfo.plannedArrival.strftime('%H:%M') }}
{% endif %}
{% endif %}
</div></div>
<div><div class="platform">
{% if tripinfo.cancelled %}
<span class="delay">Fahrt fällt aus</span>
{% elif tripinfo.platform %}
Steig {{ tripinfo.platform }}
{% else %}
{% endif %}
</div></div>
<div><div class="departure">
{% if tripinfo.arrival %}
Ab:
{% if tripinfo.departureDelay %}
<span class="delay">{{ tripinfo.departure.strftime('%H:%M') }}</span>
<br/>Plan: {{ tripinfo.plannedDeparture.strftime('%H:%M') }}
{% else %}
{{ tripinfo.departure.strftime('%H:%M') }}
{% endif %}
{% elif tripinfo.plannedDeparture %}
{% if tripinfo.cancelled %}
<span class="delay">Ab: ––:––</span>
<br/>Plan: {{ tripinfo.plannedDeparture.strftime('%H:%M') }}
{% else %}
Ab: <i class="material-icons">gps_off</i> {{ tripinfo.plannedDeparture.strftime('%H:%M') }}
{% endif %}
{% endif %}
</div></div>
</div>
<div class="linklist">
{% if tripinfo.quoted_where %}
<a class="smallbutton" href="https://dbf.finalrewind.org/map/{{ tripinfo.id }}/0?from={{ tripinfo.quoted_where }}"><i class="material-icons" aria-hidden="true">map</i> Karte</a>
{% else %}
<a class="smallbutton" href="https://dbf.finalrewind.org/map/{{ tripinfo.id }}/0"><i class="material-icons" aria-hidden="true">map</i> Karte</a>
{% endif %}
<div>
<div class="remarks">
<ul>
{% for remark in tripinfo.remarks %}
{% if remark["type"] == "status" and remark["code"] is none %}
<li>{{ remark["summary"] }} – {{ remark["text"] }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="route">
Fahrtverlauf:
<ul>
{% for stopover in tripinfo.stopovers %}
<li class="
{% if stopover.is_future %}
future-stop
{% else %}
past-stop
{% endif %}
{% if stopover.cancelled %}
cancelled-stop
{% endif %}
">
{% if stopover.when %}
{{ stopover.when.strftime('%H:%M') }}
{% elif stopover.plannedWhen %}
{{ stopover.plannedWhen.strftime('%H:%M') }}
{% endif %}
{% if stopover.is_requested_stop %}
<span class="this-stop">{% if stopover.name_area %}{{ stopover.name_area }}{% endif %} {{ stopover.name_stop }} </span>
{% else %}
{% if stopover.name_area %}{{ stopover.name_area }}{% endif %} {{ stopover.name_stop }}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
|