From 209d9abb1c8edde498e178182d368cb6f537818f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Sep 2013 19:22:42 +0200 Subject: add json frontend to selection menu --- cgi/templates/main.html.ep | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cgi') diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep index 7a2612d..d879cad 100644 --- a/cgi/templates/main.html.ep +++ b/cgi/templates/main.html.ep @@ -62,13 +62,19 @@ % if ($city and $stop) { % if ($frontend eq 'png') { - % } % elsif ($frontend eq 'html') { % } +% elsif ($frontend eq 'json') { +

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

+% } % } % else { @@ -128,7 +134,7 @@ other German transit networks.
frontend
-
<%= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html']] %>
+
<%= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html'], ['JSON' => 'json']] %>
<% end %> -- cgit v1.2.3