]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/way_history.rhtml
i18n geocoder results
[rails.git] / app / views / browse / way_history.rhtml
index 1eaf52ed532a50cc9fbe35239effd1029ce46a12..edb967e9ecb00a1548a994eed9986a9a59b2c82f 100644 (file)
@@ -1,4 +1,8 @@
-<h2>Way History: <%= h(@name) %></h2>
+<%
+@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">
@@ -7,16 +11,9 @@
         <%= 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>
-    <td align="right">
-      <% if @way.visible %>
-        <%= render :partial => "map", :locals => { :type => "way", :id => @way.id } %>
-      <% else %>
-        Deleted
-      <% 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>