Unverified Commit 754719a8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

show all known operators

parent 084f3d05
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -857,7 +857,7 @@ sub render_train {
			my ( $route, $journey ) = @_;

			$departure->{trip_id}   = $journey->id;
			$departure->{operator} = $journey->operator;
			$departure->{operators} = [ $journey->operators ];
			$departure->{date} = $route->[0]{sched_dep} // $route->[0]{dep};

			# Use HAFAS route as source of truth; ignore IRIS data
@@ -1209,7 +1209,7 @@ sub train_details {

			$res->{origin}      = $journey->route_start;
			$res->{destination} = $journey->route_end;
			$res->{operator}    = $journey->operator;
			$res->{operators}   = [ $journey->operators ];

			$res->{route_post_diff} = $route;

+2 −2
Original line number Diff line number Diff line
@@ -376,8 +376,8 @@
%       }
      </ul> <!-- mroute -->
%   }
%   if ($departure->{operator}) {
     <div class="details">Betrieb: <%= $departure->{operator} %></div>
%   if ($departure->{operators} and @{$departure->{operators} // []}) {
     <div class="details">Betrieb: <%= join(q{, }, @{ $departure->{operators} // [] } ) %></div>
%   }
%   if ($departure->{details} and @{$departure->{details}}) {
      <div class="details">Details: