From 8dfc0c027758929345f428c3a24f1b9221f9c81e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Aug 2014 18:49:06 +0200 Subject: move application from cgi directory to the project root --- templates/layouts/default.html.ep | 140 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 templates/layouts/default.html.ep (limited to 'templates/layouts') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep new file mode 100644 index 0000000..8600b8f --- /dev/null +++ b/templates/layouts/default.html.ep @@ -0,0 +1,140 @@ + + + + <%= $title %> + +% if ($self->stash('refresh_interval')) { + +% } + + + %= stylesheet '/default.css' + %= javascript '/jquery-1.10.2.min.js' + %= javascript '/marquee.js' + %= javascript begin + $(function () { $('marquee').marquee() }); + % end + + + +% if (my $error = stash 'error') { +
Received an error from the backend service:
+
+
+%= $error
+
+
+% } + +%= content + +% if (not $hide_opts) { +
+ + +%= form_for _redirect => begin +
+
+
Station name
+
+% if (stash('stationlist')) { + %= select_field station => stash('stationlist') +% } +% else { + %= text_field 'station' +% } + %= submit_button 'Display' +
+
+
+ optional: +
+
+ only display routes via +
+
+ %= text_field 'via' +
+
+
+
+ on platforms +
+
+ %= text_field 'platforms' +
+
+
+
+ hide delay < 5 minutes +
+
+ %= check_box 'hidelowdelay' => 1 +
+
+
+
+ display type +
+
+ %= select_field mode => [['combined' => 'multi'], ['platform' => 'single'], ['non-DB' => 'clean']] +
+
+
+
+ backend +
+
+ %= select_field backend => [['RIS' => 'ris'], ['IRIS' => 'iris']] +
+
+
+
+ hide input fields +
+
+ %= check_box 'hide_opts' => 1 +
+
+
+% end + +
+ +
+notes: + +
+ +
+examples: + +
+ +
+see also: + +
+ +
+db-fakedisplay +v<%= $version %> +
+% } + + + -- cgit v1.2.3