From 6b7f19880ba5bbcc0632b457404f102c9deac462 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Feb 2013 23:04:24 +0100 Subject: move templates from DATA section to separate files --- cgi/templates/single.html.ep | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 cgi/templates/single.html.ep (limited to 'cgi/templates/single.html.ep') diff --git a/cgi/templates/single.html.ep b/cgi/templates/single.html.ep new file mode 100644 index 0000000..916c5b5 --- /dev/null +++ b/cgi/templates/single.html.ep @@ -0,0 +1,49 @@ +% 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 { + +
+
+Bitte Ansage beachten +
+
+ +

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

+ +% } -- cgit v1.2.3