summaryrefslogtreecommitdiff
path: root/cgi/templates/clean.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-07 21:20:34 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-07 21:20:34 +0100
commit07a5d91dc3ba22b80ebb583cb690b54dc6505f8b (patch)
tree0b200571c222cf1f3066b9020b9bd2201f4ebc4b /cgi/templates/clean.html.ep
parent6c8d494df892dbcb9dbd7048402137f385593e96 (diff)
Start work on clean (soon-to-be oeffi-like) display
Diffstat (limited to 'cgi/templates/clean.html.ep')
-rw-r--r--cgi/templates/clean.html.ep55
1 files changed, 55 insertions, 0 deletions
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}) {
+
+<div class="displayclean">
+% my $i = 0;
+% for my $departure (@{$departures}) {
+% $i++;
+
+<div class="display <% if (($i % 2) == 0) { %> separator<% } %>">
+
+<div class="train">
+%= $departure->{train}
+</div>
+
+<div class="destination">
+%= $departure->{destination}
+</div>
+
+<div class="platform">
+%= $departure->{platform}
+</div>
+
+<div class="time">
+%= $departure->{time}
+</div>
+
+<div class="via">
+% my $via_max = @{$departure->{via}};
+% my $via_cur = 0;
+% for my $stop (@{$departure->{via}}) {
+% $via_cur++;
+<span><%= $stop %><% if ($via_cur < $via_max) { %> - <% } %></span>
+% }
+</div>
+
+% if ($departure->{info}) {
+<div class="info">
+%= $departure->{info}
+</div>
+% }
+
+</div> <!-- display -->
+
+% }
+
+</div> <!-- outer -->
+
+% }
+% else {
+
+<p>
+DB-Fakedisplay displays the next departures at a DB station, just like the big
+LC display in the station itself.
+</p>
+
+% }