]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/way_history.html.erb
Fix display of browsed objects on map
[rails.git] / app / views / browse / way_history.html.erb
index f581dd189611d62bcd7598963e5c411c340b562e..8bc50e307044cddee001f44812c0f37836060a49 100644 (file)
@@ -2,11 +2,23 @@
 @name = printable_name @way
 @title = t('browse.way_history.way_history') + ' | ' + @name
 %>
-<h2><%= raw t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %></h2>
-<%= render :partial => "map", :object => @way %>
-<% @way.old_ways.reverse.each do |way| %>
-  <%= render :partial => "way_details", :object => way %>
-  <hr />
+
+<% content_for :head do %>
+  <%= stylesheet_link_tag 'browse' %>
+  <%= javascript_include_tag 'index' %>
 <% end %>
-<%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %>
-| <%= link_to(t('browse.way_history.view_details'), :action => "way") %>
+
+<% content_for :sidebar do %>
+  <h2><%= raw t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %></h2>
+
+  <% @way.old_ways.reverse.each do |way| %>
+    <%= render :partial => "way_details", :object => way %>
+  <% end %>
+
+  <ul class='secondary-actions clearfix'>
+    <li><%= link_to(t('browse.way_history.download_xml'), :controller => "old_way", :action => "history") %></li>
+    <li><%= link_to(t('browse.way_history.view_details'), :action => "way") %></li>
+  </ul>
+<% end %>
+
+<%= render :template => 'layouts/map' %>