summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-13 13:52:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-13 13:52:20 +0100
commitd3df2a6eb82eab6d3164e9da4c8c7c243764c5bc (patch)
treec5748bf6f7083e994b4fa04889b96003399ffb38 /cgi/index.pl
parentd2898c218bae26a43f1fcda4cc6f6a79a3e2ba23 (diff)
infoscreen: playing around with vw (viewport-width based font sizes)
Diffstat (limited to 'cgi/index.pl')
-rw-r--r--cgi/index.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index fd00b9f..d579b4d 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -178,7 +178,8 @@ sub get_filtered_departures {
if ( ( @grep_line and not( any { $line =~ $_ } @grep_line ) )
or ( @grep_platform and not( $platform ~~ \@grep_platform ) )
- or ( $line =~ m{ ^ (RB | RE | IC | EC) }x ) )
+ or ( $opt{hide_regional} and $line =~ m{ ^ (RB | RE | IC | EC) }x )
+ )
{
next;
}
@@ -294,6 +295,7 @@ sub render_html {
backend => scalar $self->param('backend'),
filter_line => scalar $self->param('line'),
filter_platform => scalar $self->param('platform'),
+ hide_regional => ( $template eq 'infoscreen' ? 0 : 1 ),
);
my @departures = make_infoboard_lines(
@@ -332,9 +334,10 @@ sub render_json {
city => $self->stash('city'),
stop => $self->stash('stop'),
backend => scalar $self->param('backend'),
+ cache_expiry => 60,
filter_line => scalar $self->param('line'),
filter_platform => scalar $self->param('platform'),
- cache_expiry => 60,
+ hide_regional => 1,
);
my @departures = make_infoboard_lines(
no_lines => scalar $self->param('no_lines'),
@@ -373,6 +376,7 @@ sub render_image {
backend => scalar $self->param('backend'),
filter_line => scalar $self->param('line'),
filter_platform => scalar $self->param('platform'),
+ hide_regional => 0,
);
my @departures = make_infoboard_lines(