aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorZog2018-05-17 16:18:46 +0200
committerZog2018-05-17 16:18:46 +0200
commita90a7cbf003ded70478eec6afdfee2581a06eaed (patch)
treee4d6d08a5046f6d0bd3fbc98f6225d64f0d92fcc /app/views
parent7852fb8e6d5b9c4f13615ad1cd8a1f26dcd35da7 (diff)
downloadchouette-core-a90a7cbf003ded70478eec6afdfee2581a06eaed.tar.bz2
Refs #7031; Page loading optimizations
Diffstat (limited to 'app/views')
-rw-r--r--app/views/referential_vehicle_journeys/_consolidated_line.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referential_vehicle_journeys/_consolidated_line.html.slim b/app/views/referential_vehicle_journeys/_consolidated_line.html.slim
index c73c65961..9a27c0ecf 100644
--- a/app/views/referential_vehicle_journeys/_consolidated_line.html.slim
+++ b/app/views/referential_vehicle_journeys/_consolidated_line.html.slim
@@ -78,7 +78,7 @@
strong= link_to journey.id, [@referential, journey.route.line, journey.route, :vehicle_journeys]
div
= link_to journey.published_journey_name, [@referential, journey.route.line, journey.route, :vehicle_journeys], title: journey.published_journey_name
- div= journey.journey_pattern.get_objectid.short_id
+ div= journey.journey_pattern_only_objectid.get_objectid.short_id
div
- journey.purchase_windows[0..3].each do |tt|
span.vj_tt
@@ -105,7 +105,7 @@
ruby:
headline = vehicle_journey_stop_headline prev_sp, sp
prev_sp = sp
- vjas = journey.vehicle_journey_at_stops.where(stop_point_id: sp.id).last
+ 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?