diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 249997a..9e69218 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -358,10 +358,13 @@
% my $url = 'https://bahn.expert/details/'; % if ($journey->{train_id} =~ m{[|]}) { - % $url = $url . '/' . $journey->{sched_departure}->epoch . '000?jid=' . $journey->{train_id} =~ s{#}{%23}gr; + % if ($journey->{train_type} and $journey->{train_no}) { + % $url .= $journey->{train_type} . ' ' . $journey->{train_no}; + % } + % $url .= '/' . $journey->{sched_departure}->epoch . '000?jid=' . $journey->{train_id} =~ s{#}{%23}gr; % } % else { - % $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; + % $url .= $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; % } % if ($journey->{backend_id} <= 1) { Zuglauf