diff options
| author | Zog | 2018-06-01 09:07:37 +0200 | 
|---|---|---|
| committer | Zog | 2018-06-01 09:07:37 +0200 | 
| commit | 183b27201771cc388d6b5d037137db736fce3300 (patch) | |
| tree | 4dd772c984181a6b924a326d8d7870aed92391d3 | |
| parent | 9297022aaa6d8de809471e2093f45b5526b5a08d (diff) | |
| download | chouette-core-small-consolidated-view-improvement.tar.bz2 | |
Refs #7119; Fix Consolidated viewsmall-consolidated-view-improvement
| -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" | 
