From ceef0eda607c16844043be2477bf0da5abf9aec4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 Sep 2013 18:51:01 +0200 Subject: add experimental HTML frontend --- cgi/templates/display.html.ep | 74 +++++++++++++++++++++++++++++++++++++++++++ cgi/templates/main.html.ep | 14 ++++++++ 2 files changed, 88 insertions(+) create mode 100644 cgi/templates/display.html.ep (limited to 'cgi/templates') diff --git a/cgi/templates/display.html.ep b/cgi/templates/display.html.ep new file mode 100644 index 0000000..b61dabf --- /dev/null +++ b/cgi/templates/display.html.ep @@ -0,0 +1,74 @@ + + + + <%= $title %> + + + + + + +
+% for my $d (@{$departures}) { +
+
<%= $d->[0] %>
+
<%= $d->[1] %>
+
<%= $d->[2] %>
+
+% } +
+ + + diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep index 6686ff6..821824a 100644 --- a/cgi/templates/main.html.ep +++ b/cgi/templates/main.html.ep @@ -9,6 +9,10 @@ font-family: Sans-Serif; } + iframe { + border: none; + } + div.about { margin-top: 2em; color: #666666; @@ -57,9 +61,15 @@ % if ($city and $stop) { +% if ($frontend eq 'png') { % } +% elsif ($frontend eq 'html') { + +% } +% } % else {

@@ -116,6 +126,10 @@ other German transit networks.

backend
<%= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] %>
+
+
frontend
+
<%= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html']] %>
+
<% end %> -- cgit v1.2.3