X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3edd81f03b5f06636e0e206fd8427e8c4456658b..0a3aba7f891ba55a5500f02907cec15d44554eae:/app/views/browse/node.html.erb diff --git a/app/views/browse/node.html.erb b/app/views/browse/node.html.erb index 14e8aa503..8f0a2001b 100644 --- a/app/views/browse/node.html.erb +++ b/app/views/browse/node.html.erb @@ -2,24 +2,18 @@ @name = printable_name @node @title = t('browse.node.node') + ' | ' + @name %> - - - - - - - - <%= render :partial => "map", :object => @node %> - -
-

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

-
- <%= render :partial => "navigation" %> -
- <%= render :partial => "node_details", :object => @node %> -
- <%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "node", :action => "read"), - :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) - %> -
+<% content_for :head do %> +<%= stylesheet_link_tag 'browse' %> +<% end %> +<%= render :partial => "navigation" %> +

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

+<% if @node.visible -%> +<%= render :partial => "map", :object => @node %> +<% end -%> +<%= render :partial => "node_details", :object => @node %> +
+<%= 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 -%>