diff options
| author | Xinhui | 2016-09-09 13:11:46 +0200 |
|---|---|---|
| committer | Xinhui | 2016-09-09 13:11:46 +0200 |
| commit | ec8233bf59eed3edbdcf6ebf3b8812ec3d7f7ee7 (patch) | |
| tree | b0dd20a62f5c23c498d14bb97b6292207345f020 | |
| parent | c78802969f4d45028d3854198e311530813ae73b (diff) | |
| download | chouette-core-ec8233bf59eed3edbdcf6ebf3b8812ec3d7f7ee7.tar.bz2 | |
Fix stop_area_path not found on stop_areas#show
Refs #1606
| -rw-r--r-- | app/views/stop_areas/_genealogical.html.slim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/stop_areas/_genealogical.html.slim b/app/views/stop_areas/_genealogical.html.slim index c70106a17..a31cd9529 100644 --- a/app/views/stop_areas/_genealogical.html.slim +++ b/app/views/stop_areas/_genealogical.html.slim @@ -2,7 +2,7 @@ h3 = genealogical_title - if @stop_area.parent.present? .parent - = link_to([@referential, @stop_area.parent], title: t("area_types.label.#{ @stop_area.parent.stop_area_type}") + " #{ @stop_area.parent.name}") do + = link_to([@stop_area_referential, @stop_area.parent], title: t("area_types.label.#{ @stop_area.parent.stop_area_type}") + " #{ @stop_area.parent.name}") do = image_tag "map/" + @stop_area.parent.stop_area_type + ".png" span = @stop_area.parent.name @@ -12,7 +12,7 @@ h3 = genealogical_title .lines - @stop_area.routing_lines.each do |line| .line - = link_to([@referential, line]) do + = link_to([@stop_area_referential, line]) do span = line.name .link = image_tag "icons/link.png" @@ -29,7 +29,7 @@ h3 = genealogical_title .children - @stop_area.children.each do |child| .child - = link_to([@referential, child], :title => t("area_types.label.#{ child.stop_area_type}") + " #{ child.name}") do + = link_to([@stop_area_referential, child], :title => t("area_types.label.#{ child.stop_area_type}") + " #{ child.name}") do = image_tag "map/" + child.stop_area_type + ".png" span = child.name @@ -38,7 +38,7 @@ h3 = genealogical_title .children - @stop_area.routing_stops.each do |stop| .child - = link_to([@referential, stop], :title => t("area_types.label.#{ stop.stop_area_type}") + " #{ stop.name}") do + = link_to([@stop_area_referential, stop], :title => t("area_types.label.#{ stop.stop_area_type}") + " #{ stop.name}") do = image_tag "map/" + stop.stop_area_type + ".png" span = "#{stop.name} #{' [' + stop.registration_number + ']' if stop.registration_number.present? }" @@ -47,8 +47,8 @@ h3 = genealogical_title .children - @stop_area.routes.each do |route| .child - = link_to([@referential, route.line ]) do + = link_to([@stop_area_referential, route.line ]) do span = route.line.number - = link_to([@referential, route.line , route]) do - span = route.name
\ No newline at end of file + = link_to([@stop_area_referential, route.line , route]) do + span = route.name |
