From 7570248c3dcd8c2129d22521ee3bc2c68294ed38 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 27 Jul 2016 21:07:34 +0200 Subject: a little bit of 21st century design --- templates/main.html.ep | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/main.html.ep b/templates/main.html.ep index cb18d93..b6cccd2 100644 --- a/templates/main.html.ep +++ b/templates/main.html.ep @@ -12,12 +12,14 @@ % if ($stop) { % if ($errstr) { +
Received an error from the backend service:
 %= $errstr
 
+
% } % elsif ($frontend eq 'png') { <%= $stop %>.png?<%= $params %>" alt="" @@ -37,6 +39,7 @@ Preview:
height="<%= $height * 5 %>" width="<%= $width * 5 %>"> % } % elsif ($frontend eq 'json') { +

<%= $stop %>.json?<%= $params %>">JSON data for <%= $city %> <%= $stop %> @@ -76,10 +79,11 @@ documentation

NOTE: The JSON interface is not guaranteed to be stable. The data layout may change any time.

+
% } -% } # ($city and $stop) +% } # ($stop) % else { - +

VRR-Infoscreen shows the next departures at a public transit stop, just like the Lumino LED displays used in some places. It also supports an @@ -92,9 +96,9 @@ It works best for the VRR (Verkehrsverbund Rhein-Ruhr), but also supports many other german transit networks. All information is provided without any guarantee of correctness, completeness or anything else.

- +
% } - +
% if (my $error = stash 'error') { @@ -129,6 +133,11 @@ guarantee of correctness, completeness or anything else. % }
+
+ %= submit_button 'Display' +
+
+ optional:
Frontend
@@ -147,11 +156,6 @@ guarantee of correctness, completeness or anything else. %= select_field backend => [['EFA / VRR' => 'vrr'], ['DB (HAFAS)' => 'db'], ['ASEAG (URA)' => 'aseag'], @efa_backends, @hafas_backends]
-
- %= submit_button 'Display' -
-
- optional:
display height [lines]
@@ -208,6 +212,7 @@ v<%= $Travel::Status::DE::HAFAS::VERSION %>
Travel::Status::DE::EFA v<%= $Travel::Status::DE::EFA::VERSION %>
+ -- cgit v1.2.3