From f515762bbcdd3ed916a958d64614d501eadb2f3d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 22 Dec 2024 07:23:32 +0100 Subject: show footer (but not opts) in some places --- lib/DBInfoscreen/Controller/Static.pm | 8 +++++--- lib/DBInfoscreen/Controller/Stationboard.pm | 5 ++++- templates/layouts/app.html.ep | 6 +++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm index 927bf6e..9a57f05 100644 --- a/lib/DBInfoscreen/Controller/Static.pm +++ b/lib/DBInfoscreen/Controller/Static.pm @@ -17,7 +17,8 @@ sub geostop { $self->render( 'geostop', with_geostop => 1, - hide_opts => 1 + hide_opts => 1, + hide_footer => 1, ); } @@ -27,19 +28,20 @@ sub about { $self->render( 'about', hide_opts => 1, + hide_footer => 1, ); } sub privacy { my ($self) = @_; - $self->render( 'privacy', hide_opts => 1 ); + $self->render( 'privacy', hide_opts => 1, hide_footer => 1 ); } sub imprint { my ($self) = @_; - $self->render( 'imprint', hide_opts => 1 ); + $self->render( 'imprint', hide_opts => 1, hide_footer => 1 ); } 1; diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index a5bc063..1a6d560 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1796,6 +1796,7 @@ sub handle_efa { title => $efa->stop->name // $station_name, refresh_interval => $template eq 'app' ? 0 : 120, hide_opts => $hide_opts, + hide_footer => $hide_opts, hide_low_delay => $hide_low_delay, show_realtime => $show_realtime, load_marquee => ( @@ -2304,6 +2305,7 @@ sub handle_result { title => $via ? "$station_name → $via" : $station_name, refresh_interval => $template eq 'app' ? 0 : 120, hide_opts => $hide_opts, + hide_footer => $hide_opts, hide_low_delay => $hide_low_delay, show_realtime => $show_realtime, load_marquee => ( @@ -2524,7 +2526,8 @@ sub backend_list { $self->render( 'select_backend', backends => \@backends, - hide_opts => 1 + hide_opts => 1, + hide_footer => 1 ); } diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 264d798..90a3abf 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -304,7 +304,11 @@ Farbschema: · system language --> - + + +% } +% if (not stash('hide_footer')) { +
DBF v<%= stash('version') // '???' %> · -- cgit v1.2.3