aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Etienne2012-06-07 18:12:38 +0200
committerMichel Etienne2012-06-07 18:12:38 +0200
commit7121e7b3f616b70be4e391cc33731c6b7e919b76 (patch)
tree208bea654fa56e695deeaab976eb717fe22dbf21
parent71cdcd02c7b9791da85375e5634dadad7a049709 (diff)
downloadchouette-core-7121e7b3f616b70be4e391cc33731c6b7e919b76.tar.bz2
add lines of ITL in index
-rw-r--r--app/views/stop_areas/_stop_area.html.erb10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/views/stop_areas/_stop_area.html.erb b/app/views/stop_areas/_stop_area.html.erb
index f3f0b96bf..d34750df6 100644
--- a/app/views/stop_areas/_stop_area.html.erb
+++ b/app/views/stop_areas/_stop_area.html.erb
@@ -12,8 +12,14 @@
<% end %>
</p>
<p>
- <%= t('.lines') %> <% stop_area.lines.each do |line| %>
- <span class="line"><%= line.number %></span>
+ <% if stop_area.area_type == 'ITL' %>
+ <%= t('.lines') %> <% stop_area.routing_lines.each do |line| %>
+ <span class="line"><%= line.number %></span>
+ <% end %>
+ <% else %>
+ <%= t('.lines') %> <% stop_area.lines.each do |line| %>
+ <span class="line"><%= line.number %></span>
+ <% end %>
<% end %>
</p>
<div class="actions">