openstreetmap-website/app/views/browse/way_history.rhtml
Thomas Wood 22292debda Data browser changes, make links more user friendly, displaying name tag where possible.
Changes to models ok'd (and suggested as temporary solution) by TomH
References #1777
2009-05-02 00:26:37 +00:00

20 lines
527 B
Text

<%
@name = printable_name @way
@title = 'Way History | ' + @name
%>
<h2>Way History: <%= h(@name) %></h2>
<table width="100%">
<tr valign="top">
<td>
<% @way.old_ways.reverse.each do |way| %>
<%= render :partial => "way_details", :object => way %>
<hr />
<% end %>
<%= link_to "Download XML", :controller => "old_way", :action => "history" %>
or
<%= link_to "view details", :action => "way" %>
</td>
<%= render :partial => "map", :object => @way %>
</tr>
</table>