]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/way.html.erb
Update title on pushState, closes #33
[rails.git] / app / views / browse / way.html.erb
index 3d1e2c57750fd67f44a47fee3a832f35673e1870..619b9314b5e13f55236eb7912fa5223d27abdd57 100644 (file)
@@ -1,13 +1,17 @@
 <%
 @name = printable_name @way
-@title = t('browse.way.way') + ' | ' + @name
+set_title(t('browse.way.way') + ' | ' + @name)
 %>
-
-<h2><%= t'browse.way.way_title', :way_name => @name %></h2>
+<h2>
+    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+    <%= t'browse.way.way_title', :way_name => @name %>
+</h2>
 
 <%= render :partial => "way_details", :object => @way %>
 
-<ul class='secondary-actions clearfix'>
-  <li><%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %></li>
-  <li><%= link_to(t('browse.way.view_history'), :action => "way_history") %></li>
-</ul>
+<div class='browse-section secondary-actions clearfix'> 
+  <h4><%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
+    &middot;
+    <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
+    </h4>
+</div>