From 29fb9c3a7ff1983efb441b2c47d1264d6d1b91c7 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 12 Jun 2024 21:10:48 +0200 Subject: Use explicit hafas=DB links --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 +- templates/app.html.ep | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 9e2f2ea..8e1e7df 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1999,7 +1999,7 @@ sub handle_result { my $station_name = $data->{station_name} // $self->stash('station'); my ( $api_link, $api_text, $api_icon ); my $params = $self->req->params->clone; - $params->param( hafas => not $params->param('hafas') ); + $params->param( hafas => $params->param('hafas') ? q{} : 'DB' ); if ( $params->param('hafas') ) { if ( $data->{station_eva} >= 8100000 and $data->{station_eva} < 8200000 ) diff --git a/templates/app.html.ep b/templates/app.html.ep index 214bee1..e81191b 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -53,9 +53,9 @@ > % } % if (param('hafas')) { - + % } -% else { +% elsif (not param('efa')) { % }
@@ -177,7 +177,9 @@ %= $route_str % } -
+% if (not param('efa')) { + +% } % } -- cgit v1.2.3