From 5bca4819dd35226886e85adf6e6c3cebdf1fb00a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Aug 2014 18:49:36 +0200 Subject: move application from cgi directory to project root --- cgi/templates/main.html.ep | 169 --------------------------------------------- 1 file changed, 169 deletions(-) delete mode 100644 cgi/templates/main.html.ep (limited to 'cgi/templates/main.html.ep') diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep deleted file mode 100644 index 8f42291..0000000 --- a/cgi/templates/main.html.ep +++ /dev/null @@ -1,169 +0,0 @@ - - - - <%= $title %> - - %= stylesheet '/main.css' - %= javascript '/jquery-2.1.1.min.js' - %= javascript '/image.js' - - - -% if ($city and $stop) { -% if ($errstr) { -
Received an error from the backend service:
-
-
-%= $errstr
-
-
-% } -% elsif ($frontend eq 'png') { - -% } -% elsif ($frontend eq 'html') { - -% } -% elsif ($frontend eq 'infoscreen') { -

-Infoscreen for -<%= $city %> <%= $stop %> -

-Preview:
- -% } -% elsif ($frontend eq 'json') { -

-JSON data for -<%= $city %> <%= $stop %> -

-

-Data is cached for 1 minute: JSON format: -

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

-VRR-Fakedisplay shows the next departures at a public transit stop, just like -the Lumino LED displays used at some stops. -

- -

-It works best for the VRR (Verkehrsverbund Rhein-Ruhr), but also supports most -other German transit networks. -

- -% } - -
- -% if (my $error = stash 'error') { -

- Error: <%= $error %>
-

-% } - -%= form_for _redirect => begin -
-
-
City → Stop
-
- %= text_field 'city' - %= text_field 'stop' - %= submit_button 'Display' -
-
-
- optional: -
-
- display height [1..10]
-
- %= text_field 'no_lines' -
-
-
-
min. offset [minutes]
-
- %= text_field 'offset' -
-
-
-
- match line prefixes¹
-
- %= text_field 'line' -
-
-
-
match platform¹
-
- %= text_field 'platform' -
-
-
-
backend
-
- %= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] -
-
-
-
frontend
-
- %= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html'], ['Infoscreen' => 'infoscreen'], ['JSON' => 'json']] -
-
-
-% end - -

-¹ separate values with commas, e.g. NE,U,10 -

-
- -
-notes: - -
- -
-vrr-fakedisplay -v<%= $version %> -
- - - -- cgit v1.2.3