]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node_history.html.erb
Fix rendering of note comments (#333)
[rails.git] / app / views / browse / node_history.html.erb
index 90b67744088a9befe372a919c7adde8a8b535504..e37f0e037fdee9323005f565bcee87551f438857 100644 (file)
@@ -2,11 +2,24 @@
 @name = printable_name @node
 @title = t('browse.node_history.node_history') + ' | ' + @name
 %>
-<h2><%= t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
-<%= render :partial => "map", :object => @node %>
-<% @node.old_nodes.reverse.each do |node| %>
-  <%= render :partial => "node_details", :object => node %>
-  <hr />
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
 <% 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") %>
+
+<% content_for :heading do %>
+  <h2><%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
+  <ul class='secondary-actions clearfix'>
+    <li><%= link_to(t('browse.node_history.download_xml'), :controller => "old_node", :action => "history") %></li>
+    <li><%= link_to(t('browse.node_history.view_details'), :action => "node") %></li>
+  </ul>
+<% end %>
+
+<% if @node.visible -%>
+  <%= render :partial => "map", :object => @node %>
+<% end -%>
+
+<div class='column-1'>
+  <% @node.old_nodes.reverse.each do |node| %>
+    <%= render :partial => "node_details", :object => node %>
+  <% end %>
+</div>