]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/way.html.erb
Improve browse design
[rails.git] / app / views / browse / way.html.erb
index 3d1e2c57750fd67f44a47fee3a832f35673e1870..bd7b4d07acc27187c6b9b3a4e3678602d1c1c9ad 100644 (file)
@@ -1,13 +1,17 @@
 <%
-@name = printable_name @way
-@title = t('browse.way.way') + ' | ' + @name
+ @name = printable_name @way
+  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='secondary-actions'>
+  <%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
+  &middot;
+  <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
+</div>