diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-08-20 18:49:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-08-20 18:49:06 +0200 |
commit | 8dfc0c027758929345f428c3a24f1b9221f9c81e (patch) | |
tree | afff867c9f544743b3b613e7c0e66a9b20c10126 /templates/layouts | |
parent | fd26aad769b97b432c254f251b7037d9a3c7db61 (diff) |
move application from cgi directory to the project root
Diffstat (limited to 'templates/layouts')
-rw-r--r-- | templates/layouts/default.html.ep | 140 |
1 files changed, 140 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html> +<head> + <title><%= $title %></title> + <meta charset="utf-8"> +% if ($self->stash('refresh_interval')) { + <meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/> +% } + + + %= stylesheet '/default.css' + %= javascript '/jquery-1.10.2.min.js' + %= javascript '/marquee.js' + %= javascript begin + $(function () { $('marquee').marquee() }); + % end +</head> +<body style="<%= ($hide_opts ? 'margin: 0; padding: 0;' : q{}) %>"> + +% if (my $error = stash 'error') { +<div class="error">Received an error from the backend service:</div> +<div> +<pre> +%= $error +</pre> +</div> +% } + +%= content + +% if (not $hide_opts) { +<div class="input-field"> + + +%= form_for _redirect => begin +<div> + <div class="field"> + <div class="desc">Station name</div> + <div> +% if (stash('stationlist')) { + %= select_field station => stash('stationlist') +% } +% else { + %= text_field 'station' +% } + %= submit_button 'Display' + </div> + </div> + <div class="break"></div> + <span class="optional">optional:</span> + <div class="field"> + <div class="desc"> + only display routes via + </div> + <div> + %= text_field 'via' + </div> + </div> + <div class="field"> + <div class="desc"> + on platforms + </div> + <div> + %= text_field 'platforms' + </div> + </div> + <div class="field"> + <div class="desc"> + hide delay < 5 minutes + </div> + <div> + %= check_box 'hidelowdelay' => 1 + </div> + </div> + <div class="field"> + <div class="desc"> + display type + </div> + <div> + %= select_field mode => [['combined' => 'multi'], ['platform' => 'single'], ['non-DB' => 'clean']] + </div> + </div> + <div class="field"> + <div class="desc"> + backend + </div> + <div> + %= select_field backend => [['RIS' => 'ris'], ['IRIS' => 'iris']] + </div> + </div> + <div class="field"> + <div class="desc"> + hide input fields + </div> + <div> + %= check_box 'hide_opts' => 1 + </div> + </div> +</div> +% end + +</div> <!-- input-field --> + +<div class="notes"> +<span class="notes">notes:</span> +<ul> +<li>Umlauts do not work reliably. Try either ä → ae or ä → a</li> +</ul> +</div> <!-- notes --> + +<div class="notes"> +<span class="notes">examples:</span> +<ul> +<li><a href="/Essen%20Hbf">Essen HBf</a> (RIS, combined table)</li> +<li><a href="/Dortmund/Bochum%7CHamm">Dortmund HBf</a> (RIS, combined table, +only routes via Bochum or Hamm)</li> +<li><a href="/Dortmund%20Uni?mode=clean&backend=iris">Dortmund Universität</a> (IRIS, mobile view)</li> +<li><a href="/KD?mode=single&backend=iris">Düsseldorf HBf</a> (IRIS, platform view)</li> +</ul> +</div> + +<div class="notes"> +<span class="notes">see also:</span> +<ul> +<li><a href="http://reiseauskunft.bahn.de/bin/bhftafel.exe/dn">DeutscheBahn RIS</a></li> +<li><a href="https://iris.noncd.db.de/wbt/js/index.html?typ=ab&amd;style=qrab&bhf=EE&SecLang=&Zeilen=40&footer=0&disrupt=1" +>DeutscheBahn IRIS</a> (see <a href="http://www.db-netz.de/file/2361656/data/betriebsstellen.pdf">betriebsstellen.pdf</a>)</li> +<li><a href="http://www.frubi.net/iris/?station=Essen%20HBf">frubi.net arrival/departure monitor</a></li> +<li><a href="http://vrrf.finalrewind.org/">vrr-fakedisplay</a></li> +</ul> +</div> <!-- notes --> + +<div class="about"> +<a href="http://finalrewind.org/projects/db-fakedisplay/">db-fakedisplay</a> +v<%= $version %> +</div> +% } + +</body> +</html> |