diff options
| -rw-r--r-- | app/views/referential_vehicle_journeys/_consolidated_line.html.slim | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/referential_vehicle_journeys/_consolidated_line.html.slim b/app/views/referential_vehicle_journeys/_consolidated_line.html.slim index 9a27c0ecf..30521b910 100644 --- a/app/views/referential_vehicle_journeys/_consolidated_line.html.slim +++ b/app/views/referential_vehicle_journeys/_consolidated_line.html.slim @@ -108,12 +108,4 @@ vjas = journey.vehicle_journey_at_stops[sp.id] .td class="#{vjas && sp.highlighted? ? 'highlighted' : ''} #{vjas.nil? ? 'disabled' : ''} #{headline.present? ? 'headlined' : ''}" div title="#{sp.stop_area.city_name ? "#{sp.stop_area.city_name} (#{sp.stop_area.zip_code})" : ''}" data-headline=headline class=(headline.present? ? 'headlined' : '') - - if vjas.present? - - if vjas.departure_time == vjas.arrival_time - = vjas.departure_time.l(format: "%H:%M") - - else - = vjas.arrival_time.l(format: "%H:%M") - | - - = vjas.departure_time.l(format: "%H:%M") - - else - | 00:00 + = [vjas&.arrival_time, vjas&.departure_time].compact.uniq.map{|t| t.l(format: "%H:%M")}.join(' - ').presence&.html_safe || "00:00" |
