]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node.html.erb
Present links at the bottom of data browser pages in a consistent way
[rails.git] / app / views / browse / node.html.erb
index d9faaf478423c7deb6ee2e881cf92bf30d645698..8f0a2001b14c189072ea725e05c4d54b0796d9d4 100644 (file)
@@ -6,11 +6,14 @@
 <%= stylesheet_link_tag 'browse' %>
 <% end %>
 <%= render :partial => "navigation" %>
-<h2><%= t'browse.node.node_title', :node_name => h(@name) %></h2>
+<h2><%= t'browse.node.node_title', :node_name => @name %></h2>
+<% if @node.visible -%>
 <%= render :partial => "map", :object => @node %>
+<% end -%>
 <%= render :partial => "node_details", :object => @node %>
 <hr />
-<%= 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)
-%>
+<%= 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 -%>