]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/node.html.erb
Update title on pushState, closes #33
[rails.git] / app / views / browse / node.html.erb
index 9fc915a126fdd81f81dd4a94e86b288bab5202ba..8847adb19bf0ec133e71431c2d974549ed62a5fa 100644 (file)
@@ -1,13 +1,18 @@
 <%
 @name = printable_name @node
-@title = t('browse.node.node') + ' | ' + @name
+set_title(t('browse.node.node') + ' | ' + @name)
 %>
 
-<h2><%= t'browse.node.node_title', :node_name => @name %></h2>
+<h2>
+    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+    <%= t'browse.node.node_title', :node_name => @name %>
+</h2>
 
 <%= render :partial => "node_details", :object => @node %>
 
-<ul class='secondary-actions clearfix'>
-  <li><%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %></li>
-  <li><%= link_to(t('browse.node.view_history'), :action => "node_history") %></li>
-</ul>
+<div class='browse-section secondary-actions clearfix'> 
+  <h4><%= link_to(t('browse.node.download_xml'), :controller => "node", :action => "read") %>
+    &middot;
+  <%= link_to(t('browse.node.view_history'), :action => "node_history") %>
+    </h4>
+</div>