From eeec5faaf0a94e3d238049d34eaa24d08e57b01e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 9 Feb 2020 20:00:58 +0100 Subject: Include requested station in train route --- templates/_train_details.html.ep | 133 +++++++++++++++++++-------------------- templates/layouts/app.html.ep | 2 +- templates/layouts/legacy.html.ep | 2 +- 3 files changed, 68 insertions(+), 69 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 4a4738d..548d2c8 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -50,21 +50,26 @@ (Gleiswechsel) % } +% my ($arr_time, $dep_time); +% if ($departure->{sched_arrival}) { +% $arr_time = $departure->{sched_arrival}; +% if ($departure->{arrival} and $departure->{arrival} ne $departure->{sched_arrival}) { +% $arr_time .= ' (heute ' . $departure->{arrival} . ')'; +% } +% } +% if ($departure->{sched_departure}) { +% $dep_time = $departure->{sched_departure}; +% if ($departure->{departure} and $departure->{departure} ne $departure->{sched_departure}) { +% $dep_time .= ' (heute ' . $departure->{departure} . ')'; +% } +% } % if (not $departure->{is_cancelled}) {
% if ($departure->{sched_arrival}) { - Ankunft: <%= $departure->{sched_arrival} %> -% if ($departure->{arrival} and $departure->{arrival} ne $departure->{sched_arrival}) { - (heute <%= $departure->{arrival} %>) -% } -
+ Ankunft: <%= $arr_time %>
% } % if ($departure->{sched_departure}) { - Abfahrt: <%= $departure->{sched_departure} %> -% if ($departure->{departure} and $departure->{departure} ne $departure->{sched_departure}) { - (heute <%= $departure->{departure} %>) -% } -
+ Abfahrt: <%= $dep_time %>
% } % if (not ($departure->{sched_arrival} or $departure->{sched_departure})) { Abfahrt: <%= $departure->{time} %> @@ -73,7 +78,7 @@ % } % }
-% if ($departure->{wr_link} or ($icetype and $icetype->[1])) { +% if ($departure->{wr_link} or ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus')) {
% if ($departure->{wr_link}) { Wagenreihung @@ -118,61 +123,55 @@ % } % if ($departure->{route_pre_diff} and $departure->{route_post_diff}) { -% if (@{$departure->{route_pre_diff}}) { - Von: - -% } -% if (@{$departure->{route_post_diff}}) { - Nach: - -% } + Fahrtverlauf: + % }
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index f492e1c..258c6fd 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ % } - % my $av = 'v27'; # asset version + % my $av = 'v28'; # asset version %= stylesheet "/static/${av}/css/app.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index 92943d4..47c4e35 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ % } - % my $av = 'v27'; # asset version + % my $av = 'v28'; # 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