blob: c8936aee80cab548ea391ea8e211f5a3ca0d37ac (
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
|
<div class="container" id="infobox" style="margin-top: 1ex; margin-bottom: 1ex;">
<div class="journey" id="jdata"
data-req="<%= stash('ajax_req') %>"
data-route="<%= stash('ajax_route') %>"
data-poly="<%= stash('ajax_polyline') %>"
>
%= l 'Fahrt'
% if (stash('train_no')) {
<strong><%= stash('train_no') %></strong>
% }
<%= l 'von' %> <strong><%= stash('origin')->{name} %></strong>
<%= l 'nach' %> <strong><%= stash('destination')->{name} %></strong>
</div>
% if (my $next = stash('next_stop')) {
<div class="nextstop">
% if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) {
<%= l 'Aufenthalt in' %> <strong><%= $next->{station}->loc->name %></strong>
% if ($next->{station}{platform}) {
<%= l 'an Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
<%= l 'bis' %> <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
% if ($next->{station}{dep_delay}) {
%= sprintf('(%+d)', $next->{station}{dep_delay})
% }
% }
% elsif ($next->{type} eq 'present' and $next->{station}{dep}) {
<%= l 'Abfahrt in' %> <strong><%= $next->{station}->loc->name %></strong>
% if ($next->{station}{platform}) {
<%= l 'von Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
<%= l 'um' %> <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
% if ($next->{station}{dep_delay}) {
%= sprintf('(%+d)', $next->{station}{dep_delay})
% }
% }
% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
%= l 'Endstation erreicht um'
<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
% if ($next->{station}{platform}) {
<%= l 'auf Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
% if ($next->{station}{arr_delay}) {
%= sprintf('(%+d)', $next->{station}{arr_delay})
% }
% }
% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
Zug steht in
<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
% if ($next->{station}{platform}) {
<%= l 'auf Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
% }
% elsif ($next->{type} eq 'next' and $next->{station}{arr}) {
%= l 'Nächster Halt:'
<strong><%= $next->{station}->loc->name %></strong>
<%= l 'um' %> <strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
% if ($next->{station}{arr_delay}) {
%= sprintf('(%+d)', $next->{station}{arr_delay})
% }
% if ($next->{station}{platform}) {
<%= l 'auf Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
% }
% elsif ($next->{type} eq 'next') {
%= l 'Nächster Halt:'
<strong><%= $next->{station}->loc->name %></strong>
% if ($next->{station}{platform}) {
<%= l 'auf Gleis' %> <strong><%= $next->{station}{platform} %></strong>
% }
% }
</div>
% }
</div>
|