1 <table class="browse_details" id="<%= way_details.version %>">
3 <%= render :partial => "common_details", :object => way_details %>
6 <th><%= t'browse.way_details.nodes' %></th>
8 <table cellpadding="0">
9 <% way_details.way_nodes.each do |wn| %>
11 <%= link_to h(printable_name(wn.node)), { :action => "node", :id => wn.node_id.to_s }, :class => link_class('node', wn.node), :title => link_title(wn.node) %>
12 <% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
13 <% if related_ways.size > 0 then %>
14 (<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), { :action => "way", :id => w.id.to_s }, :class => link_class('way', w), :title => link_title(w) ) }.to_sentence %>)
22 <% unless way_details.containing_relation_members.empty? %>
24 <th><%= t'browse.way_details.part_of' %></th>
26 <table cellpadding="0">
27 <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>