]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_node_details.rhtml
Data browser changes, make links more user friendly, displaying name tag where possible.
[rails.git] / app / views / browse / _node_details.rhtml
1 <table>
2
3   <%= render :partial => "common_details", :object => node_details %>
4
5   <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
6     <tr valign="top">
7       <th>Part of:</th>
8       <td>
9         <table cellpadding="0">
10           <% node_details.ways.each do |way| %>
11             <tr><td><%= link_to h(printable_name(way)), :action => "way", :id => way.id.to_s %></td></tr>
12           <% end %>
13           <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %>
14         </table>
15       </td>
16     </tr>      
17   <% end %>
18
19 </table>