]> 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 1be783a88f3868fd34b7e043d5efdd7604ca6a46..619b9314b5e13f55236eb7912fa5223d27abdd57 100644 (file)
@@ -1,23 +1,17 @@
 <%
 @name = printable_name @way
-@title = t('browse.way.way') + ' | ' + @name
+set_title(t('browse.way.way') + ' | ' + @name)
 %>
+<h2>
+    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+    <%= t'browse.way.way_title', :way_name => @name %>
+</h2>
 
-<% content_for :head do %>
-  <%= stylesheet_link_tag 'browse' %>
-  <%= javascript_include_tag 'index' %>
-<% end %>
+<%= render :partial => "way_details", :object => @way %>
 
-<% content_for :sidebar do %>
-  <h2><%= 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>
-    <li><%= link_to(t('browse.way.edit'), :controller => "site", :action => "edit", :way => @way.id) %></li>
-  </ul>
-<% end %>
-
-<%= render :template => 'layouts/map' %>
+<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>