openstreetmap-website/app/views/browse/node_history.rhtml

22 lines
614 B
Text

<h2>Node History: <%= h(@name) %></h2>
<table width="100%">
<tr valign="top">
<td>
<% @node.old_nodes.reverse.each do |node| %>
<%= render :partial => "node_details", :object => node %>
<hr />
<% end %>
<%= link_to "Download XML", :controller => "old_node", :action => "history" %>
or
<%= link_to "view details", :action => "node" %>
</td>
<td align="right">
<% if @node.visible %>
<%= render :partial => "map", :locals => { :type => "node", :id => @node.id } %>
<% else %>
Deleted
<% end %>
</td>
</tr>
</table>