summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-19 14:33:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-19 14:33:06 +0100
commit1c94dd25adf071ea128ea6df869ca416b7b93ae5 (patch)
tree334ea70d433c60fb49a5860c335ab84275317c5c
parent435b1504056ff9800d401d284cf38333fb7a466e (diff)
add infoscreen to frontend selector
-rw-r--r--cgi/templates/main.html.ep11
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 %>&amp;template=infoscreen">Infoscreen for
+<%= $city %> <%= $stop %></a>
+</p>
+Preview:<br/>
+<iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>&amp;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>