summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-13 17:45:32 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-13 17:45:32 +0200
commit4ec583098a6e600cb6c1c9feecccc59050060d83 (patch)
treed53cb0e862cecc88ad1fcd4046428ab3f4e719db
parentde532515ae5b847a5d0e00936294d49e1c6fb7db (diff)
Only show station name in page title
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm4
-rw-r--r--templates/layouts/default.html.ep2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 9f4e672..be8a4b5 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -245,7 +245,7 @@ sub handle_request {
}
$self->stash( departures => [] );
- $self->stash( title => 'db-infoscreen' );
+ $self->stash( title => 'DBF' );
$self->stash( version => $dbf_version );
if ( defined $station and $station =~ s{ [.] txt $ }{}x ) {
@@ -863,7 +863,7 @@ sub handle_request {
$template,
departures => \@departures,
version => $dbf_version,
- title => "Abfahrtsmonitor $station_name",
+ title => $station_name,
refresh_interval => $template eq 'app' ? 0 : 120,
hide_opts => $hide_opts,
hide_low_delay => $hide_low_delay,
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index c408a10..53bf037 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="de">
<head>
- <title><%= stash('title') // 'db-infoscreen' %></title>
+ <title><%= stash('title') // 'DBF' %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, ICE, IC, RE, RB, S-Bahn">