X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/87497a904291e36c270526977cc8dc744f161d6b..7af04f8691b2be446af91ae8c51dc0e196bd22fb:/app/views/browse/node_history.html.erb diff --git a/app/views/browse/node_history.html.erb b/app/views/browse/node_history.html.erb index 7f03ac769..937ad7dc0 100644 --- a/app/views/browse/node_history.html.erb +++ b/app/views/browse/node_history.html.erb @@ -2,18 +2,13 @@ @name = printable_name @node @title = t('browse.node_history.node_history') + ' | ' + @name %> -

<%= t'browse.node_history.node_history_title', :node_name => h(@name) %>

- - - - - <%= render :partial => "map", :object => @node %> - -
- <% @node.old_nodes.reverse.each do |node| %> - <%= render :partial => "node_details", :object => node %> -
- <% 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") %> -
+

<%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %>

+<% if @node.visible -%> +<%= render :partial => "map", :object => @node %> +<% end -%> +<% @node.old_nodes.reverse.each do |node| %> + <%= render :partial => "node_details", :object => node %> +
+<% end %> +<%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %> +| <%= link_to(t('browse.node_history.view_details'), :action => "node") %>