]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node_history.html.erb
Present links at the bottom of data browser pages in a consistent way
[rails.git] / app / views / browse / node_history.html.erb
index 90b67744088a9befe372a919c7adde8a8b535504..937ad7dc083931418ea12392f65c9be3af3fbf83 100644 (file)
@@ -2,11 +2,13 @@
 @name = printable_name @node
 @title = t('browse.node_history.node_history') + ' | ' + @name
 %>
-<h2><%= t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
+<h2><%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
+<% if @node.visible -%>
 <%= render :partial => "map", :object => @node %>
+<% end -%>
 <% @node.old_nodes.reverse.each do |node| %>
   <%= render :partial => "node_details", :object => node %>
   <hr />
 <% 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") %>
+<%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %>
+| <%= link_to(t('browse.node_history.view_details'), :action => "node") %>