]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_way_details.html.erb
Update OpenID authentication plugin to latest version
[rails.git] / app / views / browse / _way_details.html.erb
1 <table>
2
3   <%= render :partial => "common_details", :object => way_details %>
4
5   <tr valign="top">
6     <th><%= t'browse.way_details.nodes' %></th>
7     <td>
8       <table cellpadding="0">
9         <% way_details.way_nodes.each do |wn| %>
10           <tr><td>
11             <%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
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) }.to_sentence %>)
15             <% end %>
16           </td></tr>
17         <% end %>
18       </table>
19     </td>
20   </tr>
21
22   <% unless way_details.containing_relation_members.empty? %>
23     <tr valign="top">
24       <th><%= t'browse.way_details.part_of' %></th>
25       <td>
26         <table cellpadding="0">
27           <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>
28         </table>
29       </td>
30     </tr>      
31   <% end %>
32
33 </table>