1 <% if way_details.redacted? %>
2 <p><%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.way'), :redaction_link => link_to(t('browse.redacted.redaction', :id => way_details.redaction.id), way_details.redaction), :version => way_details.version %></p>
5 <div class="browse_details" id="<%= way_details.version %>">
7 <%= render :partial => "common_details", :object => way_details %>
9 <% unless way_details.way_nodes.empty? %>
10 <div class='browse-section'>
11 <h4><%= t'browse.way_details.nodes' %></h4>
13 <% way_details.way_nodes.each do |wn| %>
15 <%= 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) %>
16 <% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
17 <% if related_ways.size > 0 then %>
18 (<%= raw 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 %>)
26 <% unless way_details.containing_relation_members.empty? %>
27 <div class='browse-section'>
28 <h4><%= t'browse.way_details.part_of' %></h4>
30 <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>