From 5f8418a255d9384305e2fa7e08a11aa442e69921 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 27 Sep 2020 20:41:05 +0200 Subject: show train class based on IRIS data --- templates/app.html.ep | 24 ++---------------------- templates/layouts/app.html.ep | 2 +- templates/layouts/legacy.html.ep | 2 +- 3 files changed, 4 insertions(+), 24 deletions(-) (limited to 'templates') diff --git a/templates/app.html.ep b/templates/app.html.ep index 9b7f8ab..7e23bc8 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -28,32 +28,12 @@ % for my $stop (@{$departure->{via} // []}) { % $via_cur++; % $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{}); -% } -% my $linetype = 'bahn'; -% if ( $departure->{train_type} eq 'S' ) { -% $linetype = 'sbahn'; -% } -% elsif ( $departure->{train_type} eq 'IC' -% or $departure->{train_type} eq 'ICE' -% or $departure->{train_type} eq 'EC' -% or $departure->{train_type} eq 'ECE' -% or $departure->{train_type} eq 'EN') { -% $linetype = 'fern'; -% } -% elsif ( $departure->{train_type} eq 'THA' -% or $departure->{train_type} eq 'TGV' -% or $departure->{train_type} eq 'FLX' -% or $departure->{train_type} eq 'NJ') { -% $linetype = 'ext'; -% } -% elsif ( $departure->{train_line} and $departure->{train_line} =~ m{^S\d} ) { -% $linetype = 'sbahn'; % }
  • % } -
    +
    % if ($departure->{train_type} and $departure->{train_no}) { %= $departure->{train_type} % } diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 1282080..cafa0b7 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ % } - % my $av = 'v32'; # asset version + % my $av = 'v33'; # asset version % if (session('theme') and session('theme') eq 'dark' or param('dark')) { %= stylesheet "/static/${av}/css/dark.min.css", id => 'theme' % } diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index b885bef..869707a 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ % } - % my $av = 'v32'; # asset version + % my $av = 'v33'; # asset version %= stylesheet "/static/${av}/css/default.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" -- cgit v1.2.3