<%= element_single_current_link "node", wn.node %>
-
- <%= t ".also_part_of_ways", :count => related_ways.size %>
+ <%= tag.details :class => "ms-4", :open => !visited_way_nodes[wn.node.id] do %>
+
<%= t ".also_part_of_ways", :count => related_ways.size %>
<% related_ways.each do |related_way| %>
-
@@ -43,8 +44,9 @@
<% end %>
-
+ <% end %>
<% end %>
+ <% visited_way_nodes[wn.node.id] = true %>