% if ($error) {
Fehler

Fahrt nicht gefunden.

% } % else {

% if (my $name = stash('username')) { Checkin von <%= $name %> % } % elsif ($journey->{cancelled}) { Ausgefallene Fahrt vom <%= $journey->{checkin}->strftime('%d.%m.%Y um %H:%M Uhr') %> % } % else { Checkin vom <%= $journey->{checkin}->strftime('%d.%m.%Y um %H:%M Uhr') %> % } % if ($journey->{edited} & 0x0020) { ∗ % } % if (my $v = stash('journey_visibility')) { % if (stash('username')) { <%= visibility_icon($v) %> % } % else { <%= visibility_icon($v) %> % } % }

% if ($journey->{edited}) {

∗ Daten wurden manuell eingetragen

% } % if (not stash('readonly') and ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600))) {
% my $form_target = sprintf('/journey/passenger_rights/FGR %s %s %s.pdf', $journey->{sched_departure}->ymd, $journey->{type}, $journey->{no}); %= form_for $form_target => (method => 'POST') => begin %= csrf_field %= hidden_field id => $journey->{id} %= end
% } % if ($journey->{user_data}{operator} or scalar @{ $journey->{user_data}{operators} // [] }) { % } % if ($journey->{messages} and @{$journey->{messages}}) { % } % if ($journey->{user_data}{him_msg} and @{$journey->{user_data}{him_msg}}) { % } % if ($journey->{user_data} and $journey->{user_data}{comment}) { % } % if ($journey->{user_data} and $journey->{user_data}{wagongroups} and not exists $journey->{user_data}{wagons}) { % } % elsif ($journey->{user_data} and $journey->{user_data}{wagons}) { % }
Fahrt <%= $journey->{type} %> <%= $journey->{no} %> % if ($journey->{line}) { (Linie <%= $journey->{line} %>) % }
Von %= $journey->{from_name} % if ($journey->{from_platform} and $journey->{to_platform}) { (<%= $journey->{from_platform} %>) % } % if ($journey->{edited} & 0x0004) { ∗ % }
Nach <%= $journey->{to_name} %> % if ($journey->{from_platform} and $journey->{to_platform}) { (<%= $journey->{to_platform} %>) % } % if ($journey->{edited} & 0x0400) { ∗ % }
Abfahrt % if ($journey->{cancelled}) { cancel (Plan: <%= $journey->{sched_departure}->strftime('%d.%m.%Y %H:%M'); %>) % } % elsif ($journey->{rt_departure} != $journey->{sched_departure}) { %= ($journey->{rt_departure}->epoch % 60) ? $journey->{rt_departure}->strftime('%d.%m.%Y %H:%M:%S') : $journey->{rt_departure}->strftime('%d.%m.%Y %H:%M'); (<%= sprintf('%+d', ($journey->{rt_departure}->epoch - $journey->{sched_departure}->epoch) / 60) %>, Plan: <%= ($journey->{sched_departure}->epoch % 60) ? $journey->{sched_departure}->strftime('%H:%M:%S') : $journey->{sched_departure}->strftime('%H:%M'); %>) % } % else { %= ($journey->{sched_departure}->epoch % 60) ? $journey->{sched_departure}->strftime('%d.%m.%Y %H:%M:%S') : $journey->{sched_departure}->strftime('%d.%m.%Y %H:%M'); % } % if ($journey->{edited} & 0x0003) { ∗ % }
Ankunft % if ($journey->{cancelled}) { cancel % if ($journey->{sched_arrival}->epoch != 0) { (Plan: <%= $journey->{sched_arrival}->strftime('%d.%m.%Y %H:%M'); %>) % } % } % elsif ($journey->{rt_arrival}->epoch == 0 and $journey->{sched_arrival}->epoch == 0) { timer_off % } % elsif ($journey->{rt_arrival} != $journey->{sched_arrival}) { %= ($journey->{rt_arrival}->epoch % 60) ? $journey->{rt_arrival}->strftime('%d.%m.%Y %H:%M:%S') : $journey->{rt_arrival}->strftime('%d.%m.%Y %H:%M'); (<%= sprintf('%+d', ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) / 60) %>, Plan: <%= ($journey->{sched_arrival}->epoch % 60) ? $journey->{sched_arrival}->strftime('%H:%M:%S') : $journey->{sched_arrival}->strftime('%H:%M'); %>) % } % else { %= ($journey->{sched_arrival}->epoch % 60) ? $journey->{sched_arrival}->strftime('%d.%m.%Y %H:%M:%S') : $journey->{sched_arrival}->strftime('%d.%m.%Y %H:%M'); % } % if ($journey->{edited} & 0x0300) { ∗ % }
Strecke % if ($journey->{skip_route}) { location_off <%= numify_skipped_stations($journey->{skip_route}) %>
% } % if ($journey->{km_route} > 0.1) { ca. <%= sprintf_km($journey->{km_route}) %> (Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>) % } % elsif ($journey->{km_beeline} > 0.1) { (Luftlinie: <%= sprintf_km($journey->{km_beeline}) %>) % } % else { ? % } % if ($journey->{edited} & 0x0010) { ∗ % }
Tempo % if ($journey->{skip_route}) { location_off <%= numify_skipped_stations($journey->{skip_route}) %>
% } % if ($journey->{km_route} > 0.1 and $journey->{kmh_route} > 0.01) { ∅ <%= sprintf('%.f', $journey->{kmh_route}) %> km/h (<%= sprintf('%.f', $journey->{kmh_beeline}) %> km/h) % if ($journey->{edited} & 0x0303) { ∗ % } % } % elsif ($journey->{km_beeline} > 0.1 and $journey->{kmh_beeline} > 0.01) { (<%= sprintf('%.f', $journey->{kmh_beeline}) %> km/h) % } % else { ? % }
Betrieb %= $journey->{user_data}{operator} // join(q{, }, @{$journey->{user_data}{operators}})
Meldungen % for my $message (@{$journey->{messages} // []}) { % my ($ts, $msg) = @{$message}; <%= $ts->strftime('%d.%m.%Y %H:%M') %> : <%= $msg %>
% }
Meldungen % for my $message (@{$journey->{user_data}{him_msg} // []}) { <%= ($message->{prio} and $message->{prio} eq 'HOCH') ? 'warning' : 'info' %> <%= $message->{header} %> <%= $message->{lead} %>
% }
Kommentar <%= $journey->{user_data}{comment} %>
Rollmaterial %= include '_wagons', wagongroups => $journey->{user_data}{wagongroups};
Rollmaterial % for my $wagongroup (@{$journey->{user_data}{wagongroups} // []}) { Wagenverbund <%= $wagongroup %>
% } % for my $wagon (@{$journey->{user_data}{wagons}}) { <%= substr($wagon->{id}, 0, 2) %><%= substr($wagon->{id}, 2, 2) %><%= substr($wagon->{id}, 4, 1) %><%= substr($wagon->{id}, 5, 3) %><%= substr($wagon->{id}, 8, 3) %><%= substr($wagon->{id}, 11) %> %= $wagon->{type} % if ($wagon->{number}) { – Wagen <%= $wagon->{number} %> % }
% }
Route % my $before = 1; % my $within = 0; % my $at_startstop = 0; % for my $station (@{$journey->{route}}) { % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) { % $within = 1; $at_startstop = 1; % } % elsif (($station->[1] and $station->[1] == $journey->{to_eva}) or $station->[0] eq $journey->{to_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] %> % } % if ($journey->{edited} & 0x0010) { ∗ % } % if ($within or $at_startstop) { % if ($before and $station->[2]{rt_dep} and $station->[2]{dep_delay}) { %= sprintf('%+d', $station->[2]{dep_delay}) % } % elsif (not $before and $station->[2]{rt_arr} and $station->[2]{arr_delay}) { %= sprintf('%+d', $station->[2]{arr_delay}) % } % } % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) { % $before = 0; % }
% }
% if (stash('polyline_groups')) { %= include '_map', station_coordinates => stash('station_coordinates'), polyline_groups => stash('polyline_groups') % }
%= $journey->{backend_name} || 'IRIS' #<%= $journey->{id} %>
% if (not stash('readonly')) { % if (stash('with_share')) {
Teilen
% }
delete_forever Löschen
%= form_for '/journey/edit' => (method => 'POST') => begin %= hidden_field 'journey_id' => param('journey_id') %= end
%= form_for '/journey/edit' => (method => 'POST') => begin %= hidden_field 'journey_id' => param('journey_id') %= end
Löschen
% } % }