]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node_history.html.erb
Update title on pushState, closes #33
[rails.git] / app / views / browse / node_history.html.erb
index 9b3c27a8744442ad74ada073c2ca6f63bf16fe5a..c476b23babdab06aecd69e220012c7cbc377fd45 100644 (file)
@@ -1,11 +1,12 @@
 <%
 @name = printable_name @node
-@title = t('browse.node_history.node_history') + ' | ' + @name
+set_title(t('browse.node_history.node_history') + ' | ' + @name)
 %>
 
-<div class='browse-section header'>
-    <h2><%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
-</div>
+<h2>
+    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+    <%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %>
+</h2>
 
 <% @node.old_nodes.reverse.each do |node| %>
   <%= render :partial => "node_details", :object => node %>