1 <table class="browse_details" id="<%= way_details.version %>">
3 <%= render :partial => "common_details", :object => way_details %>
5 <% unless way_details.way_nodes.empty? %>
7 <th><%= t'browse.way_details.nodes' %></th>
9 <table cellpadding="0">
10 <% way_details.way_nodes.each do |wn| %>
12 <%= 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) %>
13 <% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
14 <% if related_ways.size > 0 then %>
15 (<%= 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 %>)
24 <% unless way_details.containing_relation_members.empty? %>
26 <th><%= t'browse.way_details.part_of' %></th>
28 <table cellpadding="0">
29 <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>