]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_node_details.html.erb
Add user images to lists of diary entries.
[rails.git] / app / views / browse / _node_details.html.erb
1 <table>
2
3   <%= render :partial => "common_details", :object => node_details %>
4
5   <tr>
6     <th><%= t 'browse.node_details.coordinates' %></th>
7     <td><div class="geo"><%= link_to ("<span class='latitude'>#{number_with_delimiter(node_details.lat)}</span>, <span class='longitude'>#{number_with_delimiter(node_details.lon)}</span>"), {:controller => 'site', :action => 'index', :lat => h(node_details.lat), :lon => h(node_details.lon), :zoom => "18"} %></div></td>
8   </tr>
9
10   <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
11     <tr valign="top">
12       <th><%= t 'browse.node_details.part_of' %></th>
13       <td>
14         <table cellpadding="0">
15           <% node_details.ways.each do |way| %>
16             <tr><td><%= link_to h(printable_name(way)), :action => "way", :id => way.id.to_s %></td></tr>
17           <% end %>
18           <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %>
19         </table>
20       </td>
21     </tr>      
22   <% end %>
23
24 </table>