X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/735493837b036f5609f42a363c7f58f04525194c..cea0cccc6d73d7543d80d659b0f221f0d3196c0e:/app/views/browse/node.html.erb
diff --git a/app/views/browse/node.html.erb b/app/views/browse/node.html.erb
index 95176ab04..f41562a7f 100644
--- a/app/views/browse/node.html.erb
+++ b/app/views/browse/node.html.erb
@@ -2,12 +2,26 @@
@name = printable_name @node
@title = t('browse.node.node') + ' | ' + @name
%>
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
+<% end %>
+
+<% content_for :heading do %>
+
<%= t'browse.node.node_title', :node_name => @name %>
+
+ - <%= 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 -%>
+
+<% end %>
<%= render :partial => "navigation" %>
-<%= t'browse.node.node_title', :node_name => h(@name) %>
+
+<% if @node.visible -%>
<%= render :partial => "map", :object => @node %>
-<%= 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)
-%>
+<% end -%>
+
+
+ <%= render :partial => "node_details", :object => @node %>
+
\ No newline at end of file