diff options
| author | Alban Peignier | 2018-02-22 11:14:46 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2018-02-22 11:14:46 +0100 | 
| commit | b11983e198bf2cbf2a81ce582a6a6e949939db5d (patch) | |
| tree | 8b6bb25ab5537edcdd75584ad6efc9c63f041c9d | |
| parent | 3221693f6f4a7b99db0f68beb46bb5d3626af86c (diff) | |
| download | chouette-core-b11983e198bf2cbf2a81ce582a6a6e949939db5d.tar.bz2 | |
Use local time in ReferentialVJs#index. Enable sort on times in ReferentialVehicleJourneys#index. Refs #5996. Refs #5852
| -rw-r--r-- | app/views/referential_vehicle_journeys/index.html.slim | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/app/views/referential_vehicle_journeys/index.html.slim b/app/views/referential_vehicle_journeys/index.html.slim index 1adcfae36..00f63cb65 100644 --- a/app/views/referential_vehicle_journeys/index.html.slim +++ b/app/views/referential_vehicle_journeys/index.html.slim @@ -39,20 +39,20 @@                  ), \                  TableBuilderHelper::Column.new( \                    key: :departure_time, \ -                  attribute: Proc.new {|v| v.vehicle_journey_at_stops.first&.departure }, \ -                  sortable: false \ +                  attribute: Proc.new {|v| v.vehicle_journey_at_stops.first&.departure_local }, \ +                  sortable: true \                  ), \                  [@starting_stop, @ending_stop].compact.map{|stop| \                    TableBuilderHelper::Column.new( \ -                    attribute: Proc.new {|v| v.vehicle_journey_at_stops.where("stop_points.stop_area_id" => stop.id).last.arrival }, \ +                    attribute: Proc.new {|v| v.vehicle_journey_at_stops.where("stop_points.stop_area_id" => stop.id).last&.arrival_local }, \                      sortable: false, \                      name: stop.name \                    )\                  }, \                  TableBuilderHelper::Column.new( \                    key: :arrival_time, \ -                  attribute: Proc.new {|v| v.vehicle_journey_at_stops.last&.arrival }, \ -                  sortable: false, \ +                  attribute: Proc.new {|v| v.vehicle_journey_at_stops.last&.arrival_local }, \ +                  sortable: true, \                  ), \                ].flatten.compact,                cls: 'table has-filter has-search' | 
