% if ($journey->{checked_in}) {
% if (stash('from_profile')) { Unterwegs mit <%= include '_format_train', journey => $journey %> % } % elsif (stash('from_timeline')) { <%= $name %>: <%= include '_format_train', journey => $journey %> % } % else { <%= $name %> ist unterwegs % } <%= visibility_icon($journey->{effective_visibility_str}) %> % if (not $journey->{extra_data}{rt}) { gps_off % } % if ($privacy->{comments_visible} and $journey->{comment}) {
„<%= $journey->{comment} %>“
% }
% if (not stash('from_profile') and not stash('from_timeline')) {
%= include '_format_train', journey => $journey
% }
% if ($journey->{departure_countdown} > 60) { Abfahrt in <%= journeys->min_to_human(int($journey->{departure_countdown} / 60)) %> % } % elsif ($journey->{departure_countdown} > 0) { Abfahrt in weniger als einer Minute % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { Ankunft in <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> % } % elsif ($journey->{arrival_countdown} > 0) { Ankunft in weniger als einer Minute % } % else { Ziel erreicht % } % if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) {
auf Gleis <%= $journey->{arr_platform} %> % } % } % elsif ($journey->{arr_name}) { Ankunft in mehr als zwei Stunden % }
<%= $journey->{dep_name} %>
<%= $journey->{real_departure}->strftime('%H:%M') %> % if ($journey->{real_departure}->epoch != $journey->{sched_departure}->epoch) { (<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>) % }
% if ($journey->{arr_name}) { <%= $journey->{arr_name} %>
% } % else { Fahrt ins Blaue
% } % if ($journey->{real_arrival}->epoch) { <%= $journey->{real_arrival}->strftime('%H:%M') %> % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { (<%= sprintf('%+d', ($journey->{real_arrival}->epoch - $journey->{sched_arrival}->epoch)/60) %>) % } % } % elsif ($journey->{arr_name}) { noch nicht bekannt % }
% for my $station (@{$journey->{route_after}}) { % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[2]{arr_countdown} // 0) > 0 and $station->[2]{arr}) { %= $station->[0]
%= $station->[2]{arr}->strftime('%H:%M') % if ($station->[2]{arr_delay}) { %= sprintf('(%+d)', $station->[2]{arr_delay} / 60) % } % if ($station->[2]{load}{SECOND}) {
%= include '_show_load_icons', station => $station % } % last; % } % if (($station->[2]{dep_countdown} // 0) > 0 and $station->[2]{dep}) { %= $station->[0]
% if ($station->[2]{arr}) { <%= $station->[2]{arr}->strftime('%H:%M') %> → % } %= $station->[2]{dep}->strftime('%H:%M') % if ($station->[2]{dep_delay}) { %= sprintf('(%+d)', $station->[2]{dep_delay} / 60) % } % if ($station->[2]{load}{SECOND}) {
%= include '_show_load_icons', station => $station % } % last; % } % }
% for my $station (@{$journey->{route_after}}) { % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[2]{arr_countdown} // 0) > 0 and $station->[2]{arr}) { Nächster Halt:
%= $station->[0]
%= $station->[2]{arr}->strftime('%H:%M') % if ($station->[2]{arr_delay}) { %= sprintf('(%+d)', $station->[2]{arr_delay} / 60) % } % if ($station->[2]{load}{SECOND}) {
%= include '_show_load_icons', station => $station % } % last; % } % if (($station->[2]{dep_countdown} // 0) > 0 and $station->[2]{arr} and $station->[2]{dep}) { Aktueller Halt:
%= $station->[0]
%= $station->[2]{arr}->strftime('%H:%M') → %= $station->[2]{dep}->strftime('%H:%M') % if ($station->[2]{dep_delay}) { %= sprintf('(%+d)', $station->[2]{dep_delay} / 60) % } % if ($station->[2]{load}{SECOND}) {
%= include '_show_load_icons', station => $station % } % last; % } % }
% if ($journey->{extra_data}{cancelled_destination}) {
Der Halt an der Zielstation <%= $journey->{extra_data}{cancelled_destination} %> entfällt.
% } % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) {
    % for my $message (reverse @{$journey->{messages} // []}) { % if ($journey->{sched_departure}->epoch - $message->[0]->epoch < 1800) {
  • warning <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
  • % } % } % for my $message (@{$journey->{extra_data}{qos_msg} // []}) {
  • info <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
  • % }
% } % if (@{$journey->{extra_data}{him_msg} // []}) {
    % for my $message (@{$journey->{extra_data}{him_msg} // []}) { % if (not stash('from_timeline') or $message->{prio} and $message->{prio} eq 'HOCH') {
  • <%= ($message->{prio} and $message->{prio} eq 'HOCH') ? 'warning' : 'info' %> <%= $message->{header} %> <%= $message->{lead} %>
  • % } % }
% } % if (stash('station_coordinates')) {
%= include '_map', with_map_header => 0, station_coordinates => stash('station_coordinates'), polyline_groups => stash('polyline_groups') % } % if ( @{$journey->{wagongroups} // []} ) { % if (stash('from_timeline')) {
% for my $wagongroup (@{$journey->{wagongroups}}) { %= $wagongroup->{desc} // $wagongroup->{name} % if ($wagongroup->{designation}) { „<%= $wagongroup->{designation} %>“ % } % if ($wagongroup->{to}) { → <%= $wagongroup->{to} %> % }
% }
% } % else {
Wagen:
%= include '_wagons', wagongroups => $journey->{wagongroups};
% } % } % if (not stash('from_timeline')) {
Route:
% my $before = 1; % my $within = 0; % my $at_startstop = 0; % for my $station (@{$journey->{route}}) { % if (($station->[1] and $station->[1] == $journey->{dep_eva}) or $station->[0] eq $journey->{dep_name}) { % $within = 1; $at_startstop = 1; % } % elsif ($journey->{arr_eva} and (($station->[1] and $station->[1] == $journey->{arr_eva}) or $station->[0] eq $journey->{arr_name})) { % $within = 0; $at_startstop = 1; % } % else { % $at_startstop = 0; % } % if ($before and $station->[2]{sched_dep}) { %= $station->[2]{sched_dep}->strftime('%H:%M') % } % elsif (not $before and $station->[2]{sched_arr}) { %= $station->[2]{sched_arr}->strftime('%H:%M') % } % if ($at_startstop or $within) { %= $station->[0] % } % else { <%= $station->[0] %> % } %= include '_show_load_icons', station => $station % if ($before and $station->[2]{rt_dep} and $station->[2]{dep_delay}) { %= sprintf('%+d', $station->[2]{dep_delay} / 60) % } % elsif (not $before and $station->[2]{rt_arr} and $station->[2]{arr_delay}) { %= sprintf('%+d', $station->[2]{arr_delay} / 60) % } % if (($station->[1] and $station->[1] == $journey->{dep_eva}) or $station->[0] eq $journey->{dep_name}) { % $before = 0; % }
% }
% }
% } % else {
% if (stash('from_profile')) { Aktuell nicht eingecheckt % } % else { <%= $name %> ist gerade nicht eingecheckt % }
% if ($journey->{arr_name}) { Zuletzt gesehen % if ($journey->{real_arrival}->epoch) { %= $journey->{real_arrival}->strftime('am %d.%m.%Y') in <%= $journey->{arr_name} %> %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') % } % else { in <%= $journey->{arr_name} %> % } % }
% }