diff options
| author | Michel Etienne | 2012-06-06 23:43:37 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-06-06 23:43:37 +0200 |
| commit | d87e7eb1c72416b03cf82cae7fd2db3777219d5a (patch) | |
| tree | bb200d03ec50910a8882d2375f4e4aefb30aa94e /app/views/journey_patterns | |
| parent | aa00d31ffe2ec040504b6699213fe60763563fda (diff) | |
| download | chouette-core-d87e7eb1c72416b03cf82cae7fd2db3777219d5a.tar.bz2 | |
show restriction constraint links
Diffstat (limited to 'app/views/journey_patterns')
| -rw-r--r-- | app/views/journey_patterns/show.kml.erb | 12 |
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 %> |
