blob: f7912b2f9e751ad5ebb90604d7d31f653988a323 (
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
|
%= include 'individualform';
% if (@{$list} == 0) {
<div class="error">
Keine Daten mit diesen Parametern gefunden.
</div>
% }
% else {
<div class="individuallist">
<table>
<tr><th>Bahnhof</th><th>Zeit</th><th>Zug</th><th>Nummer</th><th>Richtung</th><th>Meldungen</th></tr>
% for my $entry (@{ stash('list') // [] }) {
% my ($station, $time, $delay, $canceled, $dest, $train_type, $train_no, $line_no, $platform, $messages) = @{$entry};
<tr>
<td class="station">
%= $station
</td>
<td class="time <%= $canceled ? 'cancelled' : q{} %>">
%= $time
% if (defined $delay) {
% if ($delay < 0) {
<span class="undelay"><%= $delay %></span>
% }
% elsif ($delay == 0) {
<span class="delay0">+0</span>
% }
% else {
<span class="delay">+<%= $delay %></span>
% }
% }
</td>
<td class="train">
%= $train_type;
% if ($line_no) {
%= $line_no;
%}
</td>
<td class="train_no">
%= $train_no
</td>
<td class="destination">
%= $dest
</td>
<td class="messages">
% for my $msg (@{$messages // []}) {
<%= $msg %><br/>
% }
</td>
</tr>
% }
</table>
</div>
% }
|