X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/935c238626af44723ecb51531fe3a552831edd70..7ad58d1411289ad241a49abb87e414ff13b60173:/app/views/browse/node.html.erb diff --git a/app/views/browse/node.html.erb b/app/views/browse/node.html.erb index d78c8b5c2..8f0a2001b 100644 --- a/app/views/browse/node.html.erb +++ b/app/views/browse/node.html.erb @@ -6,15 +6,14 @@ <%= stylesheet_link_tag 'browse' %> <% end %> <%= render :partial => "navigation" %> -

<%= t'browse.node.node_title', :node_name => h(@name) %> -<% if !@node.visible? %> -(<%= t 'browse.map.deleted' %>) -<% end %> -

+

<%= t'browse.node.node_title', :node_name => @name %>

+<% if @node.visible -%> <%= render :partial => "map", :object => @node %> +<% end -%> <%= render :partial => "node_details", :object => @node %>
-<%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "old_node", :action => "version", :version => @node.version), - :view_history_link => link_to(t('browse.node.view_history'), :action => "node_history"), - :edit_link => link_to(t('browse.node.edit'), :controller => "site", :action => "edit", :lat => @node.lat, :lon => @node.lon, :zoom => 18, :node => @node.id) -%> +<%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %> +| <%= link_to(t('browse.node.view_history'), :action => "node_history") %> +<% if @node.visible -%> +| <%= link_to(t('browse.node.edit'), :controller => "site", :action => "edit", :lat => @node.lat, :lon => @node.lon, :zoom => 18, :node => @node.id) %> +<% end -%>