From 8dfc0c027758929345f428c3a24f1b9221f9c81e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Aug 2014 18:49:06 +0200 Subject: move application from cgi directory to the project root --- templates/multi.html.ep | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 templates/multi.html.ep (limited to 'templates/multi.html.ep') diff --git a/templates/multi.html.ep b/templates/multi.html.ep new file mode 100644 index 0000000..26f3433 --- /dev/null +++ b/templates/multi.html.ep @@ -0,0 +1,56 @@ +% if (@{$departures}) { + +
+% my $i = 0; +% for my $departure (@{$departures}) { +% $i++; + +
+
+%= $departure->{platform} +
+ +
+%= $departure->{time} +
+ +
+%= $departure->{train} +
+ +
+% my $via_max = @{$departure->{via}}; +% my $via_cur = 0; +% for my $stop (@{$departure->{via}}) { +% $via_cur++; +<%= $stop %><% if ($via_cur < $via_max) { %> - <% } %> +% } +
+ +
+%= $departure->{destination} +
+ +% if ($departure->{info}) { +
+ +%= $departure->{info} + +
+% } + +
+ +% } + +
+ +% } +% else { + +

+DB-Fakedisplay displays the next departures at a DB station, just like the big +LC display in the station itself. +

+ +% } -- cgit v1.2.3