Loading lib/Travelynx/Controller/Traveling.pm +8 −0 Original line number Diff line number Diff line Loading @@ -445,6 +445,7 @@ sub map_history { $self->render( template => 'history_map', with_map => 1, skipped_journeys => [], station_coordinates => [], polyline_groups => [], ); Loading @@ -465,6 +466,8 @@ sub map_history { my @station_pairs; my %seen; my @skipped_journeys; for my $journey (@journeys) { my @route = map { $_->[0] } @{ $journey->{route} }; Loading @@ -474,6 +477,8 @@ sub map_history { if ( $from_index == -1 or $to_index == -1 ) { push( @skipped_journeys, [ $journey, 'Start/Ziel nicht in Route gefunden' ] ); next; } Loading @@ -491,6 +496,8 @@ sub map_history { and @route <= 2 and not $include_manual ) { push( @skipped_journeys, [ $journey, 'Manueller Eintrag ohne Unterwegshalte' ] ); next; } Loading Loading @@ -527,6 +534,7 @@ sub map_history { $self->render( template => 'history_map', with_map => 1, skipped_journeys => \@skipped_journeys, station_coordinates => \@station_coordinates, polyline_groups => [ { Loading templates/history_map.html.ep +18 −0 Original line number Diff line number Diff line Loading @@ -29,3 +29,21 @@ </div> </div> %= end % if (@{$skipped_journeys // []}) { <div class="row"> <div class="col s12"> <p> Die folgenden Zugfahrten wurden nicht eingezeichnet: </p> <p> <ul> % for my $pair (@{$skipped_journeys}) { % my ($journey, $reason) = @{$pair}; <li><a href="/journey/<%= $journey->{id} %>"><%= $journey->{type} %> <%= $journey->{no} %> <%= $journey->{from_name} %> → <%= $journey->{to_name} %></a>: <%= $reason %></li> % } </ul> </p> </div> </div> % } Loading
lib/Travelynx/Controller/Traveling.pm +8 −0 Original line number Diff line number Diff line Loading @@ -445,6 +445,7 @@ sub map_history { $self->render( template => 'history_map', with_map => 1, skipped_journeys => [], station_coordinates => [], polyline_groups => [], ); Loading @@ -465,6 +466,8 @@ sub map_history { my @station_pairs; my %seen; my @skipped_journeys; for my $journey (@journeys) { my @route = map { $_->[0] } @{ $journey->{route} }; Loading @@ -474,6 +477,8 @@ sub map_history { if ( $from_index == -1 or $to_index == -1 ) { push( @skipped_journeys, [ $journey, 'Start/Ziel nicht in Route gefunden' ] ); next; } Loading @@ -491,6 +496,8 @@ sub map_history { and @route <= 2 and not $include_manual ) { push( @skipped_journeys, [ $journey, 'Manueller Eintrag ohne Unterwegshalte' ] ); next; } Loading Loading @@ -527,6 +534,7 @@ sub map_history { $self->render( template => 'history_map', with_map => 1, skipped_journeys => \@skipped_journeys, station_coordinates => \@station_coordinates, polyline_groups => [ { Loading
templates/history_map.html.ep +18 −0 Original line number Diff line number Diff line Loading @@ -29,3 +29,21 @@ </div> </div> %= end % if (@{$skipped_journeys // []}) { <div class="row"> <div class="col s12"> <p> Die folgenden Zugfahrten wurden nicht eingezeichnet: </p> <p> <ul> % for my $pair (@{$skipped_journeys}) { % my ($journey, $reason) = @{$pair}; <li><a href="/journey/<%= $journey->{id} %>"><%= $journey->{type} %> <%= $journey->{no} %> <%= $journey->{from_name} %> → <%= $journey->{to_name} %></a>: <%= $reason %></li> % } </ul> </p> </div> </div> % }