diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-12-19 14:33:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-12-19 14:33:06 +0100 |
commit | 1c94dd25adf071ea128ea6df869ca416b7b93ae5 (patch) | |
tree | 334ea70d433c60fb49a5860c335ab84275317c5c | |
parent | 435b1504056ff9800d401d284cf38333fb7a466e (diff) |
add infoscreen to frontend selector
-rw-r--r-- | cgi/templates/main.html.ep | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep index 3ba93d8..b2fb7ea 100644 --- a/cgi/templates/main.html.ep +++ b/cgi/templates/main.html.ep @@ -88,6 +88,15 @@ id="display" height="<%= $height * 4 %>" width="<%= $width * 4 %>"/> <iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>" id="display" height="<%= $height * 5 %>" width="<%= $width * 5 %>"></iframe> % } +% elsif ($frontend eq 'infoscreen') { +<p> +<a href="/<%= $city %>/<%= $stop %>.html?<%= $params %>&template=infoscreen">Infoscreen for +<%= $city %> <%= $stop %></a> +</p> +Preview:<br/> +<iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>&template=infoscreen" id="display" +height="<%= $height * 5 %>" width="<%= $width * 5 %>"></iframe> +% } % elsif ($frontend eq 'json') { <p> <a href="/<%= $city %>/<%= $stop %>.json?<%= $params %>">JSON data for @@ -190,7 +199,7 @@ other German transit networks. <div class="field"> <div class="desc">frontend</div> <div> - %= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html'], ['JSON' => 'json']] + %= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html'], ['Infoscreen' => 'infoscreen'], ['JSON' => 'json']] </div> </div> </div> |