summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-10-28 18:08:29 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-10-28 18:08:29 +0200
commit8dd73ca07434da6572c517fe90e271f79c183b73 (patch)
tree86c0ff12880f5a61afea2e2b156f5aa2e6793cd5
parentd5634fa2d8ca48b81076bb1a3885a912eb32a5e4 (diff)
remove geotrain feature (i.e., search trains, not stations, in the vicinity)
it was a nice little experiment, but ultimately not fit for permanent use.
-rw-r--r--lib/DBInfoscreen.pm1
-rw-r--r--lib/DBInfoscreen/Controller/Static.pm10
-rw-r--r--templates/geotrain.html.ep5
-rw-r--r--templates/landingpage.html.ep4
4 files changed, 0 insertions, 20 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index 12da336..ef3e0a0 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -357,7 +357,6 @@ sub startup {
$r->get('/_auto')->to('static#geostop');
$r->get('/_autostop')->to('static#geostop');
- $r->get('/_autotrain')->to('static#geotrain');
$r->get('/_datenschutz')->to('static#privacy');
diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm
index 16eeb9a..e30b34f 100644
--- a/lib/DBInfoscreen/Controller/Static.pm
+++ b/lib/DBInfoscreen/Controller/Static.pm
@@ -49,16 +49,6 @@ sub geostop {
);
}
-sub geotrain {
- my ($self) = @_;
-
- $self->render(
- 'geotrain',
- with_geotrain => 1,
- hide_opts => 1
- );
-}
-
sub about {
my ($self) = @_;
diff --git a/templates/geotrain.html.ep b/templates/geotrain.html.ep
deleted file mode 100644
index 0193167..0000000
--- a/templates/geotrain.html.ep
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="geolocation">
-<div class="candidateheader"><a href="https://finalrewind.org/interblag/entry/dbf-zuglokalisierung/">Experimentelles Beta-Feature</a><br/><br/>Züge auf der Strecke:</div>
-<div class="candidatestatus">Bitte warten…</div>
-<div class="candidatelist"></div>
-</div> <!-- geolocation -->
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index ae72867..06c2d7d 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -11,10 +11,6 @@
<p class="geolink">
<a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Stationen in der Umgebung suchen</a>
</p>
-<p class="geolink">
-Oder
-<a href="<%= url_for('_autotrain')->to_abs->scheme('https') %>">Züge in der Umgebung suchen</a> (Beta-Feature)
-</p>
<p>
Oder hier angeben:
</p>