]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_way_details.html.erb
Save the user record after changing it
[rails.git] / app / views / browse / _way_details.html.erb
1 <table class="browse_details" id="<%= way_details.version %>">
2
3   <%= render :partial => "common_details", :object => way_details %>
4
5   <% unless way_details.way_nodes.empty? %>
6     <tr valign="top">
7       <th><%= t'browse.way_details.nodes' %></th>
8       <td>
9         <table cellpadding="0">
10           <% way_details.way_nodes.each do |wn| %>
11             <tr><td>
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 == wn.way_id } %>
14               <% if related_ways.size > 0 then %>
15                 (<%= 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 %>)
16               <% end %>
17             </td></tr>
18           <% end %>
19         </table>
20       </td>
21     </tr>
22   <% end %>
23
24   <% unless way_details.containing_relation_members.empty? %>
25     <tr valign="top">
26       <th><%= t'browse.way_details.part_of' %></th>
27       <td>
28         <table cellpadding="0">
29           <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>
30         </table>
31       </td>
32     </tr>      
33   <% end %>
34
35 </table>