blob: 162c24d9bafea48f83fb73d336be30b9d51c72a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
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
= image_tag "map/" + @stop_area.parent.stop_area_type + ".png"
= @stop_area.parent.name
.link
= image_tag "icons/link.png"
- elsif @stop_area.routing_lines.present?
.lines
- @stop_area.routing_lines.each do |line|
.line
= link_to([@referential, line]) do
span> = line.name
.link = image_tag "icons/link.png"
- else
.no_parent
.target
= image_tag "map/" + @stop_area.stop_area_type + ".png"
span = @stop_area.name
- if @stop_area.children.present?
.link = image_tag "icons/link.png"
.children
- @stop_area.children.each do |child|
.child
= link_to([@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
- elsif @stop_area.routing_stops.present?
.link = image_tag "icons/link.png"
.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
= image_tag "map/" + stop.stop_area_type + ".png"
span = "#{stop.name} #{' [' + stop.registration_number + ']' if stop.registration_number.present? }"
- elsif @stop_area.routes.present?
<div class="link"><%= image_tag "icons/link.png"%></div>
.children
- @stop_area.routes.each do |route|
.child
= link_to([@referential, route.line ]) do
span = route.line.number
= link_to([@referential, route.line , route]) do
span = route.name
|