From 07a5d91dc3ba22b80ebb583cb690b54dc6505f8b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 7 Dec 2013 21:20:34 +0100 Subject: Start work on clean (soon-to-be oeffi-like) display --- cgi/templates/clean.html.ep | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 cgi/templates/clean.html.ep (limited to 'cgi/templates/clean.html.ep') diff --git a/cgi/templates/clean.html.ep b/cgi/templates/clean.html.ep new file mode 100644 index 0000000..021b7f1 --- /dev/null +++ b/cgi/templates/clean.html.ep @@ -0,0 +1,55 @@ +% if (@{$departures}) { + +
+% my $i = 0; +% for my $departure (@{$departures}) { +% $i++; + +
+ +
+%= $departure->{train} +
+ +
+%= $departure->{destination} +
+ +
+%= $departure->{platform} +
+ +
+%= $departure->{time} +
+ +
+% my $via_max = @{$departure->{via}}; +% my $via_cur = 0; +% for my $stop (@{$departure->{via}}) { +% $via_cur++; +<%= $stop %><% if ($via_cur < $via_max) { %> - <% } %> +% } +
+ +% 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