]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node_history.rhtml
Make a few more strings translatable in the diary entry controller
[rails.git] / app / views / browse / node_history.rhtml
index ffa42bef657989e5f7056518187b2971e14527c3..4a34e345231ca2fd02ade4b55e2b95ea5cfbb075 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>