]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node_history.rhtml
Add the ago translation in the user account view that was missed.
[rails.git] / app / views / browse / node_history.rhtml
index ffa42bef657989e5f7056518187b2971e14527c3..ea96c091fb7bbf1b10fa882bee543e3c7ee003b2 100644 (file)
@@ -1,3 +1,7 @@
+<%
+@name = printable_name @node
+@title = t('browse.node_history.node_history') + ' | ' + @name
+%>
 <h2>Node History: <%= h(@name) %></h2>
 
 <table width="100%">
@@ -7,16 +11,9 @@
         <%= 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 %>
+      <%= t 'browse.node_history.download', :download_xml_link => link_to (t'browse.node_history.download_xml', :controller => "old_node", :action => "history"),
+                                            :view_details_link => link_to (t'browse.node_history.view_details', :action => "node") %>
     </td>
+    <%= render :partial => "map", :object => @node %>
   </tr>
 </table>