blob: 8fedf84e8bf256eb6c398e3031d5738b113e6894 (
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
|
<ul class="collection departures connections">
% for my $res (@{$suggestions}) {
% my ($dep, $dest) = @{$res};
% my $row_class = '';
% my $link_class = 'action-checkin';
% if ($dep->{is_cancelled}) {
% $row_class = 'cancelled';
% $link_class = 'action-cancelled-from';
% }
% if ($checkin_from) {
<li class="collection-item <%= $row_class %> <%= $link_class %>"
data-dbris="<%= $dbris %>"
data-station="<%= $dep->{stop_eva} %>"
data-train="<%= $dep->{id} %>"
data-suffix="<%= $dep->{maybe_line_no} %>"
data-ts="<%= $dep->{ts} %>"
data-dest="<%= $dest->{name} %>">
% }
% else {
<li class="collection-item <%= $row_class %>">
% }
<a class="dep-time" href="#">
% if ($dep->{is_cancelled}) {
%= $dep->{sched_hhmm}
% }
% else {
%= $dep->{rt_hhmm}
% }
% if ($dep->{delay}) {
%= sprintf('(%+d)', $dep->{delay})
% }
</a>
<span class="connect-platform-wrapper">
% if ($dep->{platform}) {
<span>
% if (($dep->{type} // q{}) =~ m{ ast | bus | ruf }ix) {
Steig
% }
% else {
Gleis
% }
%= $dep->{platform}
</span>
% }
<span class="dep-line <%= $dep->{type} // q{} %>">
%= $dep->{line}
</span>
</span>
<span class="dep-dest">
%= $dest->{name}
</span>
</li>
% }
</ul>
|