aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/journey_patterns
diff options
context:
space:
mode:
authorMichel Etienne2012-06-06 23:43:37 +0200
committerMichel Etienne2012-06-06 23:43:37 +0200
commitd87e7eb1c72416b03cf82cae7fd2db3777219d5a (patch)
treebb200d03ec50910a8882d2375f4e4aefb30aa94e /app/views/journey_patterns
parentaa00d31ffe2ec040504b6699213fe60763563fda (diff)
downloadchouette-core-d87e7eb1c72416b03cf82cae7fd2db3777219d5a.tar.bz2
show restriction constraint links
Diffstat (limited to 'app/views/journey_patterns')
-rw-r--r--app/views/journey_patterns/show.kml.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/journey_patterns/show.kml.erb b/app/views/journey_patterns/show.kml.erb
index 6fd8900b6..e08eb2255 100644
--- a/app/views/journey_patterns/show.kml.erb
+++ b/app/views/journey_patterns/show.kml.erb
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
- <Placemark id="route_<%= @journey_pattenr.id %>" >
- <name><%= @journey_pattenr.name %></name>
- <%= @journey_pattenr.geometry.kml_representation.html_safe %>
+ <Placemark id="route_<%= @journey_pattern.id %>" >
+ <name><%= @journey_pattern.name %></name>
+ <%= @journey_pattern.geometry.kml_representation.html_safe %>
</Placemark>
- <% @journey_pattenr.stop_areas.where("latitude is not null and longitude is not null").each_with_index do |stop_area, index| %>
+ <% @journey_pattern.stop_areas.where("latitude is not null and longitude is not null").each_with_index do |stop_area, index| %>
<Placemark id="<%= stop_area.id %>" >
<name><%= "#{stop_area.name} (#{index+1})" %></name>
- <% if stop_area.id==@journey_pattenr.stop_areas.first.id %>
+ <% if stop_area.id==@journey_pattern.stop_areas.first.id %>
<departure>true</departure>
- <% elsif stop_area.id==@journey_pattenr.stop_areas.last.id %>
+ <% elsif stop_area.id==@journey_pattern.stop_areas.last.id %>
<arrival>true</arrival>
<% end %>
<%= stop_area.geometry.kml_representation.html_safe %>