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 --- cgi/templates/clean.html.ep | 85 --------------------- cgi/templates/layouts/default.html.ep | 140 ---------------------------------- cgi/templates/multi.html.ep | 56 -------------- cgi/templates/not_found.html.ep | 13 ---- cgi/templates/single.html.ep | 54 ------------- 5 files changed, 348 deletions(-) delete mode 100644 cgi/templates/clean.html.ep delete mode 100644 cgi/templates/layouts/default.html.ep delete mode 100644 cgi/templates/multi.html.ep delete mode 100644 cgi/templates/not_found.html.ep delete mode 100644 cgi/templates/single.html.ep (limited to 'cgi/templates') diff --git a/cgi/templates/clean.html.ep b/cgi/templates/clean.html.ep deleted file mode 100644 index ae1167c..0000000 --- a/cgi/templates/clean.html.ep +++ /dev/null @@ -1,85 +0,0 @@ -% if (@{$departures}) { - -
- -
- -% } -% else { - -

-DB-Fakedisplay displays the next departures at a DB station, just like the big -LC display in the station itself. -

- -% } diff --git a/cgi/templates/layouts/default.html.ep b/cgi/templates/layouts/default.html.ep deleted file mode 100644 index 8600b8f..0000000 --- a/cgi/templates/layouts/default.html.ep +++ /dev/null @@ -1,140 +0,0 @@ - - - - <%= $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 %> -
-% } - - - diff --git a/cgi/templates/multi.html.ep b/cgi/templates/multi.html.ep deleted file mode 100644 index 26f3433..0000000 --- a/cgi/templates/multi.html.ep +++ /dev/null @@ -1,56 +0,0 @@ -% if (@{$departures}) { - -
-% my $i = 0; -% for my $departure (@{$departures}) { -% $i++; - -
-
-%= $departure->{platform} -
- -
-%= $departure->{time} -
- -
-%= $departure->{train} -
- -
-% my $via_max = @{$departure->{via}}; -% my $via_cur = 0; -% for my $stop (@{$departure->{via}}) { -% $via_cur++; -<%= $stop %><% if ($via_cur < $via_max) { %> - <% } %> -% } -
- -
-%= $departure->{destination} -
- -% if ($departure->{info}) { -
- -%= $departure->{info} - -
-% } - -
- -% } - -
- -% } -% else { - -

-DB-Fakedisplay displays the next departures at a DB station, just like the big -LC display in the station itself. -

- -% } diff --git a/cgi/templates/not_found.html.ep b/cgi/templates/not_found.html.ep deleted file mode 100644 index ca1fb5f..0000000 --- a/cgi/templates/not_found.html.ep +++ /dev/null @@ -1,13 +0,0 @@ - - - - page not found - - - -
-page not found -
- - diff --git a/cgi/templates/single.html.ep b/cgi/templates/single.html.ep deleted file mode 100644 index 7376eb4..0000000 --- a/cgi/templates/single.html.ep +++ /dev/null @@ -1,54 +0,0 @@ -% if (@{$departures}) { - -
-% my $i = 0; -% for my $departure (@{$departures}) { -% $i++; -
-
-%= $departure->{platform} -
-
-%= $departure->{time} -
-
-%= $departure->{train} -
-
-% my $via_max = @{$departure->{via}}; -% my $via_cur = 0; -% for my $stop (@{$departure->{via}}) { -% $via_cur++; -<%= $stop %><% if ($via_cur < $via_max) { %> - <% } %> -% } -
-
-%= $departure->{destination} -
-% if ($departure->{info}) { -
- -%= $departure->{info} - -
-% } -
-% } - -
- -% } -% else { - -
-
-Bitte Ansage beachten -
-
- -

-DB-Fakedisplay displays the next departures at a DB station, just like the big -LC display in the station itself. -

- -% } -- cgit v1.2.3