]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/way_history.rhtml
Set the OpenLayers locale when creating a map.
[rails.git] / app / views / browse / way_history.rhtml
index 32aadb3ff0b2f9f8b27fdbaba6092ecd90ce8010..edb967e9ecb00a1548a994eed9986a9a59b2c82f 100644 (file)
@@ -1,8 +1,19 @@
-<h2>Way History: <%= h(@name) %></h2>
-<%= render :partial => 'common', :locals => { :obj => @way, :type => "way" } %>
-<h2>Hisorical Versions</h2> 
-<% @way.old_ways.reverse.each do |way| %>
-<%= render :partial => 'common_editedby', :locals => { :obj => way } %>
-<%= render :partial => 'tag_table', :locals => { :tags => way.tags } %>
-<hr />
-<% end %>
+<%
+@name = printable_name @way
+@title = t('browse.way_history.way_history') + ' | ' + @name
+%>
+<h2><%= t'browse.way_history.way_history_title', :way_name => 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 %>
+      <%= t'browse.way_history.download', :download_xml_link => link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history"), 
+                                          :view_details_link => link_to(t('browse.way_history.view_details'), :action => "way") %>
+    </td>
+    <%= render :partial => "map", :object => @way %>
+  </tr>
+</table>