aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_stop_areas
diff options
context:
space:
mode:
authorXinhui2016-09-21 17:38:30 +0200
committerXinhui2016-09-21 17:38:30 +0200
commitd5d1923112cf4c47b78b7fe415c0f638a96c7074 (patch)
treef7785facdeb5fa85e6390f802d1afe6babe26963 /app/views/referential_stop_areas
parent9ccb414f3144eb7c17ab69d3cb5d94b11d915aa9 (diff)
downloadchouette-core-d5d1923112cf4c47b78b7fe415c0f638a96c7074.tar.bz2
Fix error on StopArea#show with AccessPoint
refs #1685
Diffstat (limited to 'app/views/referential_stop_areas')
-rw-r--r--app/views/referential_stop_areas/show.html.slim12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/referential_stop_areas/show.html.slim b/app/views/referential_stop_areas/show.html.slim
index 2224728e9..76414edf0 100644
--- a/app/views/referential_stop_areas/show.html.slim
+++ b/app/views/referential_stop_areas/show.html.slim
@@ -61,7 +61,7 @@
p
label = "#{@stop_area.human_attribute_name('stairs_availability')} : "
-
+
- if !@stop_area.stairs_availability.nil?
= t((@stop_area.stairs_availability == true).to_s)
- else
@@ -115,7 +115,7 @@ p.after_map
div
h3 = t('.access_points')
.access_points.paginated_content
- = paginated_content @access_points, "access_points/access_point"
+ = paginated_content @access_points, "access_points/access_point", {referential: @referential}
- content_for :sidebar do
table
@@ -146,11 +146,11 @@ p.after_map
ul.actions
li
= link_to t('stop_areas.actions.select_parent'), select_parent_referential_stop_area_path(@referential, @stop_area), class: 'parent'
-
+
- if @stop_area.parent == nil
li
= link_to t('stop_areas.actions.clone_as_parent'), new_referential_stop_area_stop_area_copy_path(@referential, @stop_area, hierarchy: 'parent'), class: 'clone'
-
+
- if manage_children
li
= link_to t('stop_areas.actions.add_children'), add_children_referential_stop_area_path(@referential, @stop_area), class: 'children'
@@ -168,5 +168,5 @@ p.after_map
= link_to t('stop_areas.actions.manage_access_links'), access_links_referential_stop_area_path(@referential,@stop_area), class: 'access_link'
br
-
- = creation_tag(@stop_area) \ No newline at end of file
+
+ = creation_tag(@stop_area)