From 04bc3f1518027c28700edfb4e83528dde1cff1e4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Feb 2013 23:42:41 +0100 Subject: move main.html.ep to templates directory, remove now unneeded not_found.html.ep --- cgi/index.pl | 172 --------------------------------------------- cgi/templates/main.html.ep | 153 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+), 172 deletions(-) create mode 100644 cgi/templates/main.html.ep diff --git a/cgi/index.pl b/cgi/index.pl index 27d0fb1..de1c2b0 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -323,175 +323,3 @@ app->config( ); app->start(); - -__DATA__ - -@@ main.html.ep - - - - <%= $title %> - - - - - - -% if ($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 prefix
-
<%= text_field 'line' %>
-
-
-
match platform
-
<%= text_field 'platform' %>
-
-
-
backend
-
<%= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] %>
-
-
-<% end %> - -
- -
-notes: - -
- -
-vrr-fakedisplay -v<%= $version %> -
- - - - - - - -@@ not_found.html.ep - - - - page not found - - - -
-page not found -
- - diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep new file mode 100644 index 0000000..6686ff6 --- /dev/null +++ b/cgi/templates/main.html.ep @@ -0,0 +1,153 @@ + + + + <%= $title %> + + + + + + +% if ($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 prefix
+
<%= text_field 'line' %>
+
+
+
match platform
+
<%= text_field 'platform' %>
+
+
+
backend
+
<%= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] %>
+
+
+<% end %> + +
+ +
+notes: + +
+ +
+vrr-fakedisplay +v<%= $version %> +
+ + + + + + -- cgit v1.2.3